471,853 Members | 1,633 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,853 software developers and data experts.

fix the size of textbox in multiple listing in javascript

Hi all,
I need to populate mutilpe values into the multiple list text box and select the required values from the textbox and pass it for further functions.
<select name="options" size=4 multiple>
<option><%=value%></option>
</select>
The problem is that the width of the textbox varies according to the length of the value populated into it. I need to fix the width of the textbox for the sake of good presentation.
Could you help on this

Thanks
Apr 5 '07 #1
1 1243
acoder
16,027 Expert Mod 8TB
Use a style declaration to fix the width using the width property.
Feb 5 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.