I'm getting an error:
missing ; after for-loop initializer
I'm using firebug, but I don't see where the error is. Any insight?
Thanks for your help
On Sep 4, 6:50 pm, "Joel Birch" <[EMAIL PROTECTED]> wrote:
> 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.