Set the input-type dynamically in IE
- From: "vega80" <synnekr@xxxxxxxxx>
- Date: 30 Oct 2006 12:29:16 -0800
Hi.
I have problems with setting the input type of a text-field
dynamically. I create the input-field in the html-code, but have to
change the type from text (<input type='text'...>) to hidden (<input
type='hidden'...>) later. This works in Firefox, but won't work in IE
(gets the error "property is not supported"). Does anyone know a way to
change the input-type dynamically in IE? The reason why I need to do
this, is because I want to hide a input-field the first time the page
is loaded; when the user hits a button a second field is revealed and
the first one will be hidden. I can use element.style.display = 'none',
but I've heard that it bugs in Safari? Anyway, I will be very thankful
for your suggestions.
Greetings
Vega80
.
- Follow-Ups:
- Re: Set the input-type dynamically in IE
- From: vega80
- Re: Set the input-type dynamically in IE
- Prev by Date: Re: Need help in my code
- Next by Date: Re: Set the input-type dynamically in IE
- Previous by thread: Commercial Java program bundled with 'free' database?
- Next by thread: Re: Set the input-type dynamically in IE
- Index(es):