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

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -