I have this project im working on and i have two password fields when each one gains focus it use a jquery show blind effect; that displays a password strength div below the password fields. Then when it lose focus it hides the password strength div. I want the password strength to remain open when i switch between both password fields.
$('input[type=password]').focus(function() {
$('#pswd_info').show("blind", { direction: "vertical" }, 1000);
}).blur(function() {
$('#pswd_info').hide("blind", { direction: "vertical" }, 1000);
});
edited:
So i have spend some time trying to figure this out but i have. Here is my solution THANKS to Robert. Here is my solution.
$('input[type=password]').focus(function() {
$('#pswd_info').show("blind", { direction: "vertical" }, 300);
});
$("input[type=password]").blur(function() {
window.setTimeout(function(){
if($(":focus").attr("type") != "password"){
$('#pswd_info').hide("blind", { direction: "vertical" }, 300);
}
},100);
});
thanks everyone for your help.