toprashantjha Posted October 15, 2008 Share Posted October 15, 2008 hi all, in my application i have one selectbox and i need to disable some option and i was trying will DISABLED attribute within OPTION tag.. but it is not working in IE..The code is like this... <select> <option value="volvo">Volvo</option> <option value="saab" disabled="disabled">Saab</option> <option value="mercedes" disabled="disabled">Mercedes</option> </select> I am not getting another way to disable this.. could any body help me please... Quote Link to comment https://forums.phpfreaks.com/topic/128521-disable-select-box-option/ Share on other sites More sharing options...
Maq Posted October 15, 2008 Share Posted October 15, 2008 Please read the support for this disabled in the W3 Schools. The disabled you're doing is only supported as of IE 8.0. I think you need to do the non xhtml version which would be: Mercedes Quote Link to comment https://forums.phpfreaks.com/topic/128521-disable-select-box-option/#findComment-666160 Share on other sites More sharing options...
toprashantjha Posted October 16, 2008 Author Share Posted October 16, 2008 I tried non xhtml version also.. still it is not working.... Quote Link to comment https://forums.phpfreaks.com/topic/128521-disable-select-box-option/#findComment-666884 Share on other sites More sharing options...
haku Posted October 16, 2008 Share Posted October 16, 2008 You can't do this to option elements. Quote Link to comment https://forums.phpfreaks.com/topic/128521-disable-select-box-option/#findComment-666925 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.