Advertisement

parameters of chained select boxes

Moderators: Calcifer, slothy

parameters of chained select boxes

Postby jvanroos » Fri Apr 20, 2007 7:04 am

I have used the 'sack' script to make 4 chained selectboxes.
They are working just fine.

In the script that retrieves the items of the database and put them in the following string :

echo "obj.options[obj.options.length] = new Option('".$sel1['sel2_desc']."','".$sel1['sel2_id']."','".$sel1['spec']."');\n";

the first item (sel2_desc) is the item name, second(sel2_id) is the item id, and the third parameter is a flag to be used.

How can I acces this third parameter ? (this parameter is set to 0 or 1)
I've tried with :

obj.options[selectedIndex][2].value, but it gives me an error like
obj.options.2.value is not an object...

Can anyone help me out with this ?
jvanroos
 
Posts: 1
Joined: Thu Apr 19, 2007 7:40 pm

Return to General questions regarding AJAX scripts

Who is online

Users browsing this forum: No registered users and 29 guests

cron