I all,

I have a form with many field.
I want to use accordion to separate field on sections.
I have a fields validation when i press button submit.

if a field is empty, an error message appear, but i want "focused" the
field empty.

I have tried with this on a function:

if (mail_form.champ12.value == "" || mail_form.champ12.value == " ") {
alert("Effectif à assurer : ce champ est obligatoire")
mail_form.champ12.focus()
return false
}

but cause a validation error with ie7.

Thanks for your help.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to