April 2010 Entries

jQuery - how to check/uncheck a checkbox

$('#PrimaryContacts').unbin... { if ($('#PrimaryContacts option:selected').val() == 0) { $('#filterPrimaryContact').... } else { $('#filterPrimaryContact').... } }); Also, in the example above, triggering the checkbox does not change the checkbox value. As depicted above, based on a dropdown box changing and no contact being selected from the drop down box, automatically uncheck the checkbox and trigger it in invoke any event handlers ......