lundi 16 mai 2016

Unable to check uncheck a checkbox using jquery in metronic admin theme

I am using metroic admin theme for one of my project. http://ift.tt/XyQ2Vq I have to checked or unchecked check boxes on base of data from database but problem is that i am unable to checked or unchecked a check box in metronic theme using jquery. I have tried both ways to accomplish this task using prop and attr but nothing is working for me. If i run same code on my custom web page it's working perfectly fine.

$("#checkbox").prop("checked",true);
$("#checkbox").attr('checked',false);
$("#checkbox").attr('checked','checked');




Aucun commentaire:

Enregistrer un commentaire