jQuery Issue not working -


this question has answer here:

i new jquery , learning. odd reasons following code doesn't work (i using coda2):

<!doctype html> <html> <head>     <meta charset="utf-8">     <title>home page</title>     <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>     <script>         $("#click").click(function () {             $("p").slidetoggle("slow");         });        </script>    </head>  <body>      <p>choose language</p>     <button id="click">click me</button>  </body>     </html> 

any help

wrap document.ready

$(document).ready(function () {     $("#click").click(function () {         $("p").slidetoggle("slow");     }); }); 

documentation


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -