PDA

View Full Version : Chained selects multiple forms



function
07-20-2006, 01:37 PM
1) Script Title: chained selects Help! please

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex16/chainedselects/index.htm

3) Describe problem:

I have implemented the chained selects on a search form and everything worked at first!

When I introduced another form to the page (site search) form. the chained selects dropdowns no longer get populated.

Has anyone else had this problem or have I missed something.

In brief when I have more than one form within the page chained selects doesn't work.

Can anyone suggest a solution(HELP):(

jscheuer1
07-20-2006, 05:54 PM
Make sure that your version of this:


<body onload="initListGroup('vehicles', document.forms[0].make, document.forms[0].type, document.forms[0].model, 'save')">

Is still pointing to the desired form. 0 is the first form on a page 1 is the second, and so on.