I am using jQuery to show and hide a div by adding/removing a class to it.
$('input').focus(function(){
$(this).parents('.row').addClass("linksdiv");
}).blur(function(){
$(this).parents('.row').removeClass("linksdiv");
});
It works quite well when focusing on inputs, but if I click a link in linksdiv
it loses focus and the div disappears. Would it be better to use show() and hide() for the linksdiv
than to depend on css?
Would that allow the div to be clickable when inputs are focused? Or is there a simple work around to keep linksdiv from losing focus when clicked but still have it disappear on blur?
Thanks again in advance! You folks are fantastic!
I am sorry I couldn't describe very well what i was trying to do this is it http://jsfiddle.net/Zw5c2/5/ Thanks Patrick for the resource!