Apna Garage
PHP, WordPress Codes
Home
WordPress
Monday, 25 June 2018
Check One Checkbox for all
function checkOneForAll(ele, main) { var checkAll = 1; $('input' + ele).each(function () { if ($(this).prop("checked") === false) { checkAll = 0; $('input' + main).prop("checked", false); return false; } else { checkAll = 1; } }); if (checkAll === 1) { $('input' + main).prop("checked", true); } }
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment