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"); }); });
Comments
Post a Comment