By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,960 Members | 1,535 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,960 IT Pros & Developers. It's quick & easy.

Change Input Tag Type in IE

P: 17
Hi,

I am changing the type property of a input tag in IE as below.

docment.getElementById('abc').type='text';

Its type is hidden by default. Works very well in FF and Chrome.

any clues?
Nov 19 '08 #1
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
This is in fact a JavaScript question, so I've moved it to the JavaScript forum.

IE can't change the type dynamically, so you need to completely replace it. See this thread.
Nov 19 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.