Welcome Guest, Not a member yet? Register   Sign In
Reset form_dropdown field
#1

[eluser]atoleon[/eluser]
Hi

I've create a form for my website using form helper. I've insert a form_reset button to reset the data introduced in the form.
When i clik over the reset button all input fields are reseted but not the dropdown select. I've not select any option of dropdown as the default value because the default value is the first option.
I want to do the dropdown select the first option when the reset button is clicked, its possible?
#2

[eluser]smilie[/eluser]
Well, if form itself is not doing it automagically, you could add JS function to the reset button which would then reset the drop down to the first key in the drop down.

Cheers,
Smilie
#3

[eluser]atoleon[/eluser]
My knowledge of JS are very bad.




Theme © iAndrew 2016 - Forum software by © MyBB