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
Post a Comment