javascript - Toggle just works once -


i'm trying use toggle jquery , it's working once. if click on div again toggle doesn't work, , have refresh de page. , if try on jsfiddle works fine, can´t see mistake.

$("#search_icon").click(function() {    $("#search").fadetoggle("slow", "linear");  });
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>  <img src="images/magnifying-glass32.png" height="30px" class="social_icons" id="search_icon" />  <div id="pesquisa">    <input type="text" placeholder="pesquisar..." id="search" border="0" />  </div>


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -