Patrick Schomburg Patrick Schomburg - 1 year ago 105
jQuery Question

Use jquery .prop for all checkmarks

I have a check field, special, and code that checks it.


$('#Special').prop('checked', true);


What do I change if I add a second Special field with a different value?

Answer Source

If you want to have multiple items you need to use class instead of id on your field because id must be unique on page.

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