Hello everybody I\'m trying to replace the \'text\' input type to \'password\' . And it works with following code :
function replaceT(obj){ var newO=
This should work across all browsers:
newO.className = obj.className;
I'm not sure whether you should use className or class in setAttribute, but whatever it is, it is definitely the same as in getAttribute, so this is definitely wrong:
className
class
setAttribute
getAttribute
newO.setAttribute('className' obj.getAttribute('class'));