$( document ).ready(function() {
var observer = new MutationObserver(function(mutations){
console.log('mutationObserver0')
mutations.forEach(function(mutation){
var nodes = mutation.addedNodes;
for(var i=0,len=nodes.length;i<len;i++){
var node = nodes[i];
if(node.id==="UserPassword"){
console.log('mutationObserver1')
}
}
});
});
observer.observe(document, {
subtree: true,
childList: true
});
document.addEventListener("DOMNodeInserted",function(e){
var node = e.target;
//console.log(node)
if(node.id==="UserPassword"){
// console.log('mutationObserver')
// $(document.getElementById('newPwd')).attr('type','text');
// $(document.getElementById('enSurePwd')).attr('type','text');
}
});
})