Hello everybody I\'m trying to replace the \'text\' input type to \'password\' . And it works with following code :
function replaceT(obj){ var newO=
Sorry for going in the other direction, but why do you replace the element instead of just changing its type in the first place? Than you won't need to worry about adding the same className to the new element.
Just being curious.