Javascript Action Order
<p>Say I have:</p>

<p><code>&lt;div id="name" class="button"&gt;&lt;/div&gt;</code> </p>

<p>and in a javacript file I define click actions for both class button and id name, something like:</p>

<pre><code>$("#name").click(function(event){
  alert("hi");
})

$(".button").click(function(event){
  alert("bye");
})
</code></pre>

<p>When I click that div, will I get the "hi" alert before the "bye" alert because "hi" appears above "bye"? Or does something else determine what happens first?  What if the 2 functions were in different files? Would it then matter which javascript file was included first (appeared closer to the top of the html file)?  I assume jQuery has nothing to do with this, right?</p>
