defining inputs and classes
Assuming this markup:
- <div class="editor">
- <div class="operations">
- <input type="button" value="Display" />
- </div>
- </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?:
- $(".operations").click(function () {
- $("input.operations").click(function () {