Using jQuery to check if all radio buttons have been checked
If you find yourself needing to check if all radio button groups have been checked try this dead simple solution made possible by jQuery:
$(document).ready(function() {
if ($(‘:checked’).length != 5) { alert(‘Please answer all the questions..’); return false; }
});
if ($(‘:checked’).length != 5) { alert(‘Please answer all the questions..’); return false; }
});
Developer by day, husband and dad by night and dreaming about sport inbetween.