jwk811 Posted September 19, 2010 Share Posted September 19, 2010 i have a select input on a form. i want the options to be long but the box they click smaller and cut off so when they click it it shows everything bigger. i tried stlying width and overflow hidden and stuff but i cant seem to get it to work. is this even possible? Quote Link to comment https://forums.phpfreaks.com/topic/213790-select-form-width/ Share on other sites More sharing options...
phpnewbei Posted September 19, 2010 Share Posted September 19, 2010 I don't really getting what u're saying, could you please say it a bit clearer and exactly what you wan to do Quote Link to comment https://forums.phpfreaks.com/topic/213790-select-form-width/#findComment-1112725 Share on other sites More sharing options...
Miss_Rebelx Posted September 20, 2010 Share Posted September 20, 2010 Try maybe setting the select tag to a certain name, and setting the style of the select box through a .name class in a CSS file. And then, through javascript, set up an 'onClick' event that changes the name of the select tag. The new name would then link to a different CSS class, where the size of the element is bigger. Ex: select name="class1" onClick="(set this.name.value to class2)" and in CSS .class1 width: 100px; .class2 width: 200px; Something like that. The code I provided wasn't exact syntax. Quote Link to comment https://forums.phpfreaks.com/topic/213790-select-form-width/#findComment-1113335 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.