Welcome Guest, Not a member yet? Register   Sign In
How to clear form_error
#1

[eluser]shankar ganesh[/eluser]
I am using two radio buttons for hiding and showing divs. Validation is done its ok no problem.

Some of the controls are common for both div1 and div2.

But when i click first radio button, the div1 will show and div2 will hide and div1 fields are validated after submitting and error mesgs are showing correctly.

When i click second radio button the div2 will show and div1 will hide. Since some controls are common in both divs, div1's field's error mesg is showing when click div2 shows.

I have to clear "form_error" error mesg when clicking radio button how can be resolved this?
#2

[eluser]nuwanda[/eluser]
I assume div1 and div2 do very different things else you wouldn't have them in separate divs.

That being the case, your form inputs should be named uniquely so that conflicts can't occur.

That's just good design and something you should pursue.
#3

[eluser]shankar ganesh[/eluser]
Thanks for support




Theme © iAndrew 2016 - Forum software by © MyBB