SyntaxFix
Write A Post
Hire A Developer
Questions
Do it like this
if (typeof $(this).attr("checked") == "undefined" ) // To check if checkbox is checked if( $(this).attr("checked")=="checked")