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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

viewing complete SELECT options

Status
Not open for further replies.

billkeziah

Programmer
May 18, 2001
6
US
I have populated a select tag with options from a query. Because the text is lengthy, I have limited the size of the select box (style="width: 44em"). However, the text that does not display due to the width control is vital information. Is there anyway I can allow the user to see the entire text, whil limiting the size of the select box?
 
You could use javascript to populate the text field with the value.

e.g
<form name=&quot;myform&quot;>
<select name=&quot;OptList&quot; onchange=&quot;myform.showText.value = myform.OptList.options[myform.OptList.selectedIndex].value&quot;>

<option value=&quot;blah&quot;>
---add options here ---

<input type=&quot;text&quot; name=&quot;showText&quot; value=&quot;&quot;>

</form>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top