Patrick Schomburg Patrick Schomburg - 25 days ago 6
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

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.