javascript - Jquery the toggleSlide,function doesnt work why? -


i'm trying slide info doesn't work. here code:

<div class="article">     <div id="ebook1">ebook1</div>     <div id="infoofebook1">         download ebook1 here.     </div>       </div>  <script type="text/javascript" src="http://code.jquery.com/jquery-2.0.3.js">     $(document).ready(function(){         $("#ebook1").click(function(){             $("#infoofebook1").slidetoggle("slow");         });     }); </script> 

you don't put code inside script tag src. change this:

<script type="text/javascript" src="http://code.jquery.com/jquery-2.0.3.js"></script> <script type="text/javascript"> $(document).ready(function(){      $("#ebook1").click(function(){          $("#infoofebook1").slidetoggle("slow");      }); }); </script> 

Comments

Popular posts from this blog

pentaho - Carte Status / Kettle Slave Server Status page shows status for random runs instead of the latest run -

R summary function in ddply (plyr) in a simple way -

c# - Are delegates created via lambda expressions guaranteed to be cached? -