Home › Forums › JavaScript › On body click, hide search › Re: On body click, hide search
April 21, 2013 at 8:01 am
#132583
chrisburton
Participant
Couldn’t I do something like this:
$(‘.find’).click(function(event) {
event.preventDefault();
if ($.browser.msie) {
$(‘.search’).slideDown(‘slow’);
}
else {
$(‘.search’).slideDown(‘slow’).focus();
}
});
It doesn’t seem to work but you get what I mean.