Afaik, IE won't let you change type of an input after input is created.  
You need to create input with correct type. This can be done like this:

var  a = new Element('input', {type: 'password'})

On Mon, 23 Jun 2008 14:28:55 +0400, [EMAIL PROTECTED]  
<[EMAIL PROTECTED]> wrote:

> So, I have a problem while using writeAttribute for changing the type
> of an input field.
>
> Here is my code:
>
> $(id).writeAttribute({type: 'password'});
>
> or
>
> $(id).writeAttribute('type', 'password');
>
> Works fine with FF but IE7 tells that this command won´t be supported.
>
> Does anyone knows something about it?
> >



-- 
arty ( http://arty.name )

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to