jquery - Linking JavaScript to my HTML -


please help, i'm new web design , want make demo below work seems html not linking javascript. please view code below, demo available @ http://jsfiddle.net/xx9ykonc/ how make work, don't understand whats missing.

<!doctype html> <html>  <head> <link rel="stylesheet" type="text/css" href="style1.css"> </head> <body>  <table>     <tr>         <td><div>1</div></td>         <td><div>2</div></td>         <td><div>3</div></td>         <td><div>4</div></td>     </tr>             </table>  <script> $('table div')     .on('mouseenter', function(){         var div = $(this);         div.stop(true, true).animate({              margin: -10,             width: "+=20",             height: "+=20"         }, 'fast');     })     .on('mouseleave', function(){         var div = $(this);         div.stop(true, true).animate({              margin: 0,             width: "-=20",             height: "-=20"         }, 'fast');     }) </script>  </body> </html> 

you should include jquery adding script in head of html page

<head><script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script></head> 

Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -