Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Make for appear when you click another item: Reply To: Make for appear when you click another item:

#210528
Draz
Participant

Since you have jquery available you could make a simple click handler

This part will make it show up and set focus to it:

$("li.search.icon.menu-item").click(function() {
    $("form.search-form").show().focus();
});

While as a soon as focus is removed this bit will hide it again

$("form.search-form").on( "blur", function(){
  $("form.search-form").hide();
});