0

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

1
  • you need to used custom code to do this. Commented Nov 22, 2017 at 12:22

1 Answer 1

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();
        });
        });
2
  • how i call search bar iside it can can u gime me code
    – Monu kumar
    Commented Nov 22, 2017 at 15:31
  • you have to just put the Form inside the div.
    – Moin Malek
    Commented Nov 23, 2017 at 4:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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