<script type=\"text/javascript\" src='http://ajax.googleapis.com/libs/jquery/1.3.2/jquery.min.js?ver=1.3.2'></script>
<script type=\"text/javascript\"> $(function() { $('a').click(function() { alert(\"Hello world!\"); }); }); </script>
<a href=\"#\">Click Me</a>
<script type=\"text/javascript\"> $(document).ready(function() { $('a').click(function() { alert(\"Hello world!\"); });}); </script>
This is the test i am trying -
This is the html that is required -
Why won't it work - i really cant see the problem, i have tried hosting my own version of a jquery file but that did not work either.
Please Help
Many Thanks for your time
Chris
jQuery needs the $(document).ready function.
I did put in your code just to check but it still will not work.
Many Thanks
Chris
your javscript links to:
http://ajax.googleapis.com/libs/jquery/ ... ?ver=1.3.2
but it should link to:
http://ajax.googleapis.com/ajax/libs/jq ... ?ver=1.3.2