[jQuery] Document Ready - It lost me!?
Whoa! I thought I was beginning to understand this stuff, and
then.........
Ok, I thought that this piece of JS code in the <head> tag like so:
<html>
<head>
<script type='text/javascript'>
(function($) {
... Does it see HTML tags? ...
})(jQuery);
</script>
</head>
<body>
.... html tags ..
</body>
</html>
That the whole purpose of (function($) {...... })(jQuery) was so it
ready to work as soon as the HTML tags are ready?
I have to move it the JS to the affter the tags.
<head>
</head>
<body>
.... html tags ..
<script type='text/javascript'>
(function($) {
... Does it see HTML tags? ...
})(jQuery);
</script>
</body>
What am I missing here about jQuery?