0

How to show and hide the search bar input field I want to open it while I click on search bar icon?

  • you need to used custom code to do this. – Dhiren Vasoya Nov 22 '17 at 12:22
0

hope below code to help to you

    <div class="search-desktop">
    <ul class="search-fa-custom">
      <li><a id="searchtoggl"><i class="fa fa-search"></i></a></li>
    </ul>
      <div id="searchbar" class="clearfix toggleClass" style="display: none;">  
Your Search Form
</div>
jQuery(document).ready(function(){
    jQuery("#searchtoggl").click(function(){
          jQuery("#searchbar").slideToggle();
        });
        });
  • how i call search bar iside it can can u gime me code – Monu kumar Nov 22 '17 at 15:31
  • you have to just put the Form inside the div. – Moin Malek Nov 23 '17 at 4:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.