Using jQuery > 1.6
<input type="checkbox" value="1" name="checkMeOut" id="checkMeOut" checked="checked" /> // traditional attr $('#checkMeOut').attr('checked'); // "checked" // new property method $('#checkMeOut').prop('checked'); // true
Read full article from javascript - Check checkbox checked property using jQuery - Stack Overflow
No comments:
Post a Comment