davej Posted December 20, 2011 Share Posted December 20, 2011 http://www.w3schools.com/tags/att_option_disabled.asp This page fails to explain the proper way to ENABLE the disabled element. I have found that people here suggest using disabled=false and also see that disabled="" works, but what is the BEST answer considering the official specification? Thanks. Link to comment Share on other sites More sharing options...
JamesB Posted December 20, 2011 Share Posted December 20, 2011 for boolean attributes i just skip the value completely, like: <option disabled> the html 5 page seems to explain it better:http://www.w3schools.com/html5/att_option_disabled.asp Link to comment Share on other sites More sharing options...
Ingolme Posted December 20, 2011 Share Posted December 20, 2011 You're confusing attributes with properties again. If you don't want it disabled, just don't put the attribute. Here's the actual thing you should be looking at if you want to change that property with Javascript: http://www.w3schools...ml_disabled.asp Link to comment Share on other sites More sharing options...
davej Posted December 22, 2011 Author Share Posted December 22, 2011 You're confusing attributes with properties again. If you don't want it disabled, just don't put the attribute. Here's the actual thing you should be looking at if you want to change that property with Javascript: http://www.w3schools...ml_disabled.asp Oh, I had the <option> page, but look here at the more general <input> page which says to use disabled="disabled" http://www.w3schools.com/tags/att_input_disabled.asp This does not describe the enabled state and does not provide a link to the much more helpful DOM page. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.