shane18 Posted May 20, 2010 Share Posted May 20, 2010 document.getElementById("LS").disabled="true"; -Works document.getElementById('LS').disabled="false"; -Fails document.getElementById('LS').disabled=false; -Works -Why??? Quote Link to comment Share on other sites More sharing options...
Alex Posted May 20, 2010 Share Posted May 20, 2010 Any string will evaluate to true. So "true" == true, "false" == true or "anything" == true. You're setting a boolean value, not a string so you should not use quotes. Quote Link to comment Share on other sites More sharing options...
shane18 Posted May 20, 2010 Author Share Posted May 20, 2010 thanks im still getting use to javascript lol Quote Link to comment Share on other sites More sharing options...
ignace Posted May 20, 2010 Share Posted May 20, 2010 thanks im still getting use to javascript lol It's not only JS, it's also PHP Quote Link to comment 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.