+ 1

Please check it Why it doesn't work even i downloaded jquery-3.2.1.js

<!DOCTYPE html> <html> <head> <title>Page Title</title> <script src="jquery-3.2.1.js" type="text/javascript"> $(function() { $("div").click(function() { $("div").animate({width: '250px'}, 1000); }); }); </script> <style> div { display:inline-block; padding:25px; background-color:grey; color:white; text-align:center; cursor:pointer; } </style> </head> <body> <div>Click me</div> </body> </html>

18th Jun 2017, 4:42 AM
allahnoor turab
allahnoor turab - avatar
1 Answer
+ 9
Try this https://code.sololearn.com/WlJ4WBHgChPY/#html Your problem: 1.Wrong CDN 2.Script tag
18th Jun 2017, 4:55 AM
Nithiwat
Nithiwat - avatar