<body>
...
<script type="text/javascript">
$("a#tryIt").click(function() {
alert("Foo");
});
</script>
...
<a href="http://www.domain.com" id="tryIt">My Link</a>
</body>
However, this is not working. Is it because it's in the <body>? If so, is there anyway to make it work within the body? Any help is greatly appreciated! I'm only 1 day into to learning jQuery.
This post has been edited by coryroc: 12 June 2009 - 08:53 AM

New Topic/Question
Reply



MultiQuote


|