Is it possible for jQuery to bind events to elements if the jQuery script block comes before the html tags in the page?
As an example, this does not work:
<script>
$('a').bind('click', function() {
alert($(this).attr("innerHTML"));
</script>
<a href="#Hello">Greetings</a>
Yes, I could just put the script after the elements, but hey, maybe I don't wanna. Just curious if this is the only way.