Hello everybody I\'m trying to replace the \'text\' input type to \'password\' . And it works with following code :
function replaceT(obj){ var newO=
newO.setAttribute('className' obj.getAttribute('class'));
You are using 'className' for setting the attribute, but 'class' for getting it. Both must be 'className'.