Welcome Guest, Not a member yet? Register   Sign In
form_dropdown()
#8

[eluser]Dave Stewart[/eluser]
Actually, if you wanted to store the global variable somewhere else, you could just store it on the original select element by replacing the word "window" in the script above with "select".

That way the <select> element both calls the function and stores and retrieves the last div hidden from itself, thus, you could have several dropdowns, each with their own sets of divs to show and hide.


Messages In This Thread
form_dropdown() - by El Forum - 06-23-2008, 10:42 PM
form_dropdown() - by El Forum - 06-23-2008, 11:44 PM
form_dropdown() - by El Forum - 06-23-2008, 11:48 PM
form_dropdown() - by El Forum - 06-23-2008, 11:50 PM
form_dropdown() - by El Forum - 06-23-2008, 11:55 PM
form_dropdown() - by El Forum - 06-24-2008, 01:30 AM
form_dropdown() - by El Forum - 06-24-2008, 03:51 AM
form_dropdown() - by El Forum - 06-24-2008, 06:15 AM
form_dropdown() - by El Forum - 06-24-2008, 09:09 AM
form_dropdown() - by El Forum - 06-24-2008, 09:19 AM
form_dropdown() - by El Forum - 06-24-2008, 09:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB