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

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -