Enormity Posted July 23, 2009 Share Posted July 23, 2009 Hi, I am using the following code on my website (temporarily set up at partyparadiseohio.com) to change the input element's type for my password field, and to change the value to nothing. (Right now, it says "Password" in the input box.) document.getElementById(obj).value = ""; document.getElementById(obj).type = "password"; This code works just fine on Firefox (of course), but does not change the element type on Internet Explorer. Looking up other examples, they all show to do it like I have. Can IE just not do this for some reason, or is there other code to do this on IE? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
dzelenika Posted July 23, 2009 Share Posted July 23, 2009 Type is readonly property Quote Link to comment Share on other sites More sharing options...
Enormity Posted July 23, 2009 Author Share Posted July 23, 2009 Type is readonly property Wow... That's not cool. So then destroying the element completely and recreating it would be the only way on IE to make the type "password"? Quote Link to comment Share on other sites More sharing options...
dzelenika Posted July 23, 2009 Share Posted July 23, 2009 Type is readonly property Wow... That's not cool. So then destroying the element completely and recreating it would be the only way on IE to make the type "password"? seems :'( 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.