Hi Shaun,

Try this, although it is untested:

function validate_form (){
        var valid = true;
        for (var i=1, i<4, i++){
                if ( $(':checked',document.survey['question'+i]).length == -1 ){
                        alert ( 'Please answer question #' + i );
                        valid = false;
                }
        }
        return valid;
}

Joel Birch.

Reply via email to