The following javascript doesnt work in IE9, but works fine in Firefox. Any idea how to solve this? Thx.
var element = e.srcElement || e.target;
if(element != null){
if(element.tagName == "INPUT") {
//alert("Before: " + element.getAttribute("type"));
element.setAttribute("type", "password");
//alert("After: " + element.getAttribute("type"));
}
}
element.type = 'password'workstypeattribute dynamically. Some solutions I've found are to replace the element with a newly created one with the same specs.