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... 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 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.... 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. Link to comment https://forums.phpfreaks.com/topic/128521-disable-select-box-option/#findComment-666925 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.