defining inputs and classes

defining inputs and classes

Assuming this markup:

  1. <div class="editor">
  2.       <div class="operations">
  3.             <input type="button" value="Display" />
  4.       </div>
  5. </div>
What is the difference between these 2 lines?  Do the refer to the same button or does the first one refer to the whole .operations div?:

  1.         $(".operations").click(function () {
  2.         $("input.operations").click(function () {