How to show and hide the search bar input field I want to open it while I click on search bar icon?
1 Answer
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();
});
});