So I would like to know after form submitting if a checkbox is checked or not.
I used this lines:
var isChecked = $('#USR_RememberMe').attr('checked') ? true : false;
alert(isChecked);
But isChecked is equals to false each times.
Could you please help me ?
$('#USR_RememberMe').checkedshould also work..prop()instead of.attr(). Also, note the "Attributes vs. Properties" section in the documentation for.prop().