Hi, all.
I'm working through the tutorial or the jQuery site and,
being totally new to javascript, I'm having trouble with
syntax.
I have this:
<script type="text/javascript">
$(document).ready(function(){
});
</script>
And I'm told to add the following "to the ready function". not
sure where to put it. My attempts so far have failed. Here's what
I've tried:
<script type="text/javascript">
$(document).ready(function(){
$("a").bind("click", function(){
alert("Thanks for visiting!");
});
});
</script>
Since I'm getting an error, I must have the syntax wrong.
How should it be written?
(Note to tutorial writer: show end result of code after instructions
are followed. helps us newbies. :o)
Rick
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/