/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// Read $('input[name=foo]').is(':checked') $('input[name=foo]').attr('checked') // Set $('input[name=foo]').attr('checked', true); // checked $('input[name=foo]').attr('checked', false); // unchecked
URL: http://www.electrictoolbox.com/check-uncheck-checkbox-jquery/