jquery - Why does JSHint claim I'm missing a semicolon? -
jshint telling me last line missing semicolon:
$('#radbtnemp').click(function () { if ($('#radbtnemp').attr('checked', true)) { alert("radbtnemp checked"); } else { alert("radbtnemp not checked"); } }; as can plainly see, i've got semicolon there; surely it's not blind or gluttonous (not seeing semicolon, or wanting more one)...?
you have not missed ; ) @ end of jquery code. changing }; }); valid here.
Comments
Post a Comment