i'm trying to make something like this: http://ift.tt/2hsYYL2
but instead of fadeout checkboxes on click, i want to mark checked only the checkboxes defined by ids (var ids = [2,3,5,6];) when the page is loaded.
I was trying this and it does not work:
$("#set_1").load(function(){
var ids = [2,3,5,6];
for(i=0;i<ids.length;i++){
$("#set_"+ids[i]).prop("checked", true);
}
})
Aucun commentaire:
Enregistrer un commentaire