kuzco
07-29-2010, 07:02 PM
I want to compare items based on what the user picks there will be 3 drop down menus and the drop down menus should alter the HTML table each time it is changed, giving different option values and stuff. I am wondering how to go about this I have the basic stuff setup but I am not really sure how to add to a table that all 3 options use. Any help would be greatly appreciated.
Here is my current code for the drop downs.
<form name="compare">
<select name="compare">
<option value="V1">Value 1</option>
<option value="V2">Value 2</option>
<option value="V3">Value 3</option>
<option value="V4">Value 4</option>
</select>
<select name="compare2">
<option value="V1">Value 1</option>
<option value="V2">Value 2</option>
<option value="V3">Value 3</option>
<option value="V4">Value 4</option>
</select>
<select name="compare3">
<option value="V1">Value 1</option>
<option value="V2">Value 2</option>
<option value="V3">Value 3</option>
<option value="V4">Value 4</option>
</select>
<input type="button" onClick="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="Compare">
</form>
I want the user to select one of the options from above and a table to show up showing the differences between the others for example; someone selects Value 1 for compare, and Value 2 for compare 2, and Value 3 for Compare 3, they should be shown a table which has the differences between Value 1, Value 2, Value 3. So lets say Value 1 and Value 3 offers you "Help" while value 2 doesn't. it should show a table that says
Features Value 1 Value 2 Value 3
Help YES NO YES
how would I go about doing this?
Here is my current code for the drop downs.
<form name="compare">
<select name="compare">
<option value="V1">Value 1</option>
<option value="V2">Value 2</option>
<option value="V3">Value 3</option>
<option value="V4">Value 4</option>
</select>
<select name="compare2">
<option value="V1">Value 1</option>
<option value="V2">Value 2</option>
<option value="V3">Value 3</option>
<option value="V4">Value 4</option>
</select>
<select name="compare3">
<option value="V1">Value 1</option>
<option value="V2">Value 2</option>
<option value="V3">Value 3</option>
<option value="V4">Value 4</option>
</select>
<input type="button" onClick="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="Compare">
</form>
I want the user to select one of the options from above and a table to show up showing the differences between the others for example; someone selects Value 1 for compare, and Value 2 for compare 2, and Value 3 for Compare 3, they should be shown a table which has the differences between Value 1, Value 2, Value 3. So lets say Value 1 and Value 3 offers you "Help" while value 2 doesn't. it should show a table that says
Features Value 1 Value 2 Value 3
Help YES NO YES
how would I go about doing this?