Hello.
I'm making a "show password" button for password input. Problem that is browsers don't allow to change attribute 'type'. Ok, i'm cloning this element with jquery's clone() function and change this attribute "in memory". It works in all 'normal' browsers, but not in IE. Then i'll try to copy html, replace 'password' to 'text', save the value and append back. It works in all browsers. But my original object have binded events and additional data.
How to copy object with all properties (like it does clone()) and change attribute? How to solve this problem?