title: JSLint - Undeclared 'jQuery' warning
body: <p>I am trying to make the following jQuery code JSLint compliant. </p>
  
  <pre><code>(function ($) {
     "use strict";
      $('.addition').click(function () {
          $('.textbox:last,.addition:last,.subtraction:last,.replace:last').clone(true).appendTo('.replace:last');
          $('.textbox:last').val("");
          $('.addition:not(:last),.subtraction:not(:last)').attr('disabled','true');
      });
  
      $('.subtraction').click(function () {
  
          if($('.replace').length === 1) {
              $('.subtraction').click(function (event) {
                  event.preventDefault();
              });
          } else {
              $('.textbox:last,.addition:last,.subtraction:last,.replace:last').remove();
              $('.addition:last,.subtraction:last').removeAttr('disabled');
          }   
      });     
  }(jQuery));
  </code></pre>
  
  <p>My code is working fine. I am just trying to clear the JSLint warnings. I do not understand why JSLint is giving me an <code>undeclared 'jQuery'</code> warning on line <code>}(jQuery));</code> (last line).</p>
  
  <p><strong>UPDATE</strong> <br>
  Declaring jQuery as a global variable has cleared the warning.  </p>