What's the difference between the following two pieces of HTML (apologies if there are any typos as I'm typing this freehand)?
Using jQuery:
<script type="text/javascript">
$(document).ready(function() {
$("#clickme").click(function() {
alert("clicked!");
});
});
</script>
<a id="clickme" href="javascript:void(0);">click me</a>
Not using jQuery:
<a id="clickme" href="javascript:void(0);" onclick="alert('clicked!');">click me</a>