user2940935 user2940935 - 1 year ago 344
jQuery Question

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

I am using metroic admin theme for one of my project.
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.


Answer Source

If you are using metronic, try adding this line after the prop:


Metronic theme uses uniform library to modify standard form element into fancy element. If you check or uncheck element using jquery, it is updated but it is not reflected on front-end. To update this action on front-end you need to update using uniform library.

$.uniform.update() restyles the element depending on updated action.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download