jQuery Mobile でCheckBoxを作るには以下のHTMLを組む必要がある
[code]
<label>
<input type="checkbox" name="checkbox-0 ">Check me
</label>
[/code]
これをjQueryで動的に作成
[code]
var id_check_bookmark = ‘id-chk-bookmark-‘+handle;
var h_lbl = $("<label />", {
‘text’ : ‘bookmark’
});
var h_chekcbox = $("<input />", {
‘type’ : ‘checkbox’,
‘id’ : id_check_bookmark
});
h_chekcbox.appendTo(h_lbl);
h_content.append(h_lbl);
[/code]