Jump to content

<select></p> and Variable Number of Items


OtagoHarbour

Recommended Posts

I tried the following code, thinking the button should be under the selection list.Please select the cell file set to use.<select> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="mercedes">Mercedes</option> <option value="audi">Audi</option></select></p><input type="button" value="Run" onclick="ConstructModel()" />However, everything was on the same line. Why is the </p> tag ignored?Also, is there a way to handle a variable number of items with variable names? Thanks,Peter.

Link to comment
Share on other sites

"Handle" in what way? What kind of "items"?
In the example I gave there are 4 items which are the names of 4 types of car. However, I anticipate there could be any number of items which could have names that are pulled from a database.Thanks,Peter.
Link to comment
Share on other sites

you would probably need to re-write the HTML with some sort of server-side scripting language to dynamically create the select/option tags.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...