By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,853 Members | 936 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,853 IT Pros & Developers. It's quick & easy.

How to stop resizing of combo boxes

P: 6
Hi,
I have created some autopopulating combo boxes on my HTML page (script- Javascript). so these combo boxes are autopopulated with choices made in previous combo boxes.
The problem I am facing is that the combo boxes resize according to the length of the autopulating string. For example if the combo box autopopulates with option 'United States of America', the combo box will become wider and if it autopopulates with value 'NY' the combo box will contract. How can I stop the combo boxes from resizing on autopopulation? Is there any resize= 'No' option for Combo boxes in Javascript. And how can I fix the size of all the combo boxes to be the same.
Thanks in anticipation.
Nov 17 '08 #1
Share this Question
Share on Google+
2 Replies


debasisdas
Expert 5K+
P: 8,127
Question moved to javascript forum.
Nov 17 '08 #2

acoder
Expert Mod 15k+
P: 16,027
Set the width of the combo box. The problem, though, is that the user will then not see anything which is larger than the width in browsers like IE which do not expand automatically when the drop down box is clicked.
Nov 17 '08 #3

Post your reply

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