Wednesday, May 21, 2014

check if a checkbox .is :not :checked ...

8:18 AM Posted by Unknown No comments
So many ways to check if a checkbox is (not) checked :) especially if you mix in a little jQuery ...and the winner is: !$('#my-test-checkbox')[0].checked even though i like to read $('#my-test-checkbox').is(':not(:checked)') http://jsperf.com/not-checked-vs-not-checked ...