I am trying to create a questionnaire that will not be posted online but will use internet explorer to be viewed. Most of the questionnaires consist of radio buttons that we are forcing the participants to answer in some form using jquery with this code: $(document).ready(function(){ $('#DEMO').submit(function(){ var names = [];
var invalid = null; $('input.required').each(function(){ names[$(this).attr('name')] = true; }); for ( name in names ) { var ofname = $('input.required[name="'+name+'"]'); var selected = ofname.filter(':checked'); if( selected.length < 1 ) { invalid = name; } } if ( invalid != null ) { alert('One or more questions were not answered. Please go back and select an answer for every question. Remember, you can always select "no answer."'); return false; } return true; }); }); We also have drop down boxes and text boxes in other questionnaires that do not seem to work with the filter. When I try to change the filter for the radio button to ":radio" that does not work. I have tried ":selected" and that will not let me continue at all. And ":input" just ignores the alert all together. I have class="required" for all of the questions. I was wondering if I need to put the varibale names for each question somewhere in the java or am I completely off? I am not a java wizz so anything would help