I am trying to get a div to appear when a textbox gets focus, and disappear when the textbox looses focus. This is supposed to happen on an iPad in portrait mode (hence checking if the w
/*if the search-bar looses focus*/
$("#activate-search").focusout(function(ev){
if (w < h) {
$(".left-pane").hide();
$("#senior-card-container").css("margin-top", "40px");
ev.stopPropagation();
};
});
/*if the search-bar gets focus*/
$("#activate-search").focusin(function(){
if (w < h) {
$(".left-pane").show();
$("#senior-card-container").css("margin-top", "250px");
$(".navbar").css("position", "fixed", "top", "20px");
};
});