Creating variable arrays with Javascript (dyamic, drop down) -


i've been searching board while (both here , google) , can't seem find i'm looking. (sorry if i've missed , qualifies annoying/redundant question.)

i'm working on form have copious amounts of drop downs based on previous selected variable(s). trying come easier way having create individual fields , hide/show based on selection. ultimately, i'm aiming "tree" between 3-5 levels of menus. (clients doing, not mine.)

what logic looks like:
variables: type, offer1, offer2, insert1, insert2, insert3,...
where [type] determines [offer1,2] has 3 variables each [insert1,2,3...]

so if user selects type a: offer1 = array (insert1 = arraya1, insert2 = arraya2, insert3 = null) , offer2 = array b (insert4 = arrayb4, insert5 = null); , on , forth.

so far, i've found seems handle first tier, , js isn't forte. pointing in right direction appreciated.

in case else runs across issue, found solution uses jquery: http://www.appelsiini.net/projects/chained


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -