Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Input box

Status
Not open for further replies.

strom99

MIS
Nov 28, 2000
126
0
0
US
I have the following piece of code which allows a user to select 0,30,60 or 90 day order horizon days, I need to change this to a text box where they can enter in any number, I am very new to this and have no clue how to handle this...any advice would be appreciated.

<td bgcolor=&quot;white&quot; align=&quot;left&quot; width=&quot;550&quot;>
<span class=&quot;pagecontent&quot;>
<select name=&quot;das007_p1&quot;>
<option value=&quot;0&quot;>0</OPTION>
<option value=&quot;30&quot;>30</OPTION>
<option value=&quot;60&quot;>60</OPTION>
<option value=&quot;90&quot;>90</OPTION>
</select>
<bean:message key=&quot;reports.days&quot;/>
</span>
</td>
 
<INPUT TYPE=&quot;text&quot; NAME=&quot;myTextBox&quot; VALUE=&quot;Not Set&quot;>
 
Change:

<select name=&quot;das007_p1&quot;>
<option value=&quot;0&quot;>0</OPTION>
<option value=&quot;30&quot;>30</OPTION>
<option value=&quot;60&quot;>60</OPTION>
<option value=&quot;90&quot;>90</OPTION>
</select>

To:

<input type=&quot;text&quot; name=&quot;das007_p1&quot; />

The name=&quot;&quot; has to stay the same.

 
Petey's suggestion is valid.You should not change the name of the object.However,if you are using Javascript in your application, make sure that any of the javascript functions which is refering to this object , is not using any of the javascript methods/properties which applies only to Combo ,e.g., selectedIndex,etc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top