OtagoHarbour Posted May 1, 2011 Share Posted May 1, 2011 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 More sharing options...
dsonesuk Posted May 1, 2011 Share Posted May 1, 2011 try<p> </p> Link to comment Share on other sites More sharing options...
OtagoHarbour Posted May 1, 2011 Author Share Posted May 1, 2011 try<p> </p>That worked!!! Thanks very much!Now I just need to figure out how to handle a variable number of items with variable names.Thanks again,Peter. Link to comment Share on other sites More sharing options...
jeffman Posted May 1, 2011 Share Posted May 1, 2011 handle a variable number of items with variable names"Handle" in what way? What kind of "items"? Link to comment Share on other sites More sharing options...
OtagoHarbour Posted May 1, 2011 Author Share Posted May 1, 2011 "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 More sharing options...
thescientist Posted May 3, 2011 Share Posted May 3, 2011 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.