SyntaxFix
Write A Post
Hire A Developer
Questions
Use this plugin :
$.fn.toggleCheck =function() { if(this.tagName === 'INPUT') { $(this).prop('checked', !($(this).is(':checked'))); } }
Then
$('#myCheckBox').toggleCheck();