Jump to content

Sorting the values in drop down menu


noureen

Recommended Posts

OK example

<select name="list1" onchange="ajaxFunction('LBox2', this.value);">

<option value='1'>Red</option>

<option value='5'>Green</option>

<option value='10'>Blue</option>

</select>

 

Now when the Item from list1 is selected the value LBox2 and the selected value is passed to the a PHP script, in the example it passes to itself, now that part echos some data back, NOW whatever is echoed is printed in the object with the ID LBox2..

 

which in the example is

 

<select name="list2" id="LBox2">

<!-- OK the ID of this list box is LBox2 as refered to above -->

</select>

 

so "<!-- OK the ID of this list box is LBox2 as refered to above -->" is replaced

 

make sense ?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.