How do you tell if a browser has auto filled a text-box? Especially with username & password boxes that autofill around page load.
My first question is when does
I used this solution for same problem.
HTML code should change to this:
and jQuery code should be in document.ready:
document.ready
$('#txt_password').focus(function(){ $(this).attr('type','password'); });