<option value="a very long value a very long value a very long value" selected>a very long value a very long value a very long value</OPTION>
</select>
-----------------------------------------
<script language="javascript">
function changeWidth()
{
if (document.MyForm.selectboxname.style.width == '105px')
{
document.MyForm.selectboxname.style.width = '450px';
}
else
{
document.MyForm.selectboxname.style.width = '105px';
}
}
</script>
<form name="MyForm">
<SELECT style="width:105px" onmousedown="changeWidth()" name="selectboxname" SIZE="1">
<OPTION value="short">short value</OPTION>
<OPTION value="long" selected>a very long value a very long value a very long value</OPTION>
</SELECT><br><br>
<input type="submit" value="go for it" name="submit1">
</form>
Hope this helps,
Erik <!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (
This is a tough problem with no easy solution. One method may be to use a custom select box. One visitor asked whether he could put images in a select, any way someone replied with a url to a page where someone had created thier own select box. Well this select would be able to wrap the text onto a new line as it uses tables to make up the drop down list. This did look like a very neet select box and one that gameon may find useful:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.