by simon baird

Friday, July 18, 2008

jQuery is a beautiful thing...

$(document).ready(function(){
    $('#quiz_submit_button').click(function(){
        // check they answered everything
        if ($('input[@type="radio"]:checked').size() != $('.question').size()) {
            alert('Please answer every question.');
            return false;
        };
        return true;
    });
});

No comments: