title: Conflicting jquery versions won't work even with $.noConflict(true);
body: <p>My html file has various functions which requires two different jquery versions. In the head section I have them loaded like this:</p>
  
  <pre><code>        &lt;script type="text/javascript" src="http://code.jquery.com/jquery-1.6.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
    var $jq16 = $.noConflict(true);
  &lt;/script&gt;
  
  &lt;script src="http://code.jquery.com/jquery-2.1.0.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
        var $jq21 = $.noConflict(true);
      &lt;/script&gt;
  </code></pre>
  
  <p>I mostly need to use <code>jquery-2.1.0.min.js</code> so in all my scripts I've replaced every single <code>$</code> with <code>$jq21</code>.</p>
  
  <p>For instance, if I ony include jquery-2.1.0 in my page and leave out v1.6, then the following script works fine. But when I include v1.6, and switch <code>$</code> to <code>$jq21</code>, and also include the noConflict code, this script doesn't work:</p>
  
  <pre><code> &lt;script&gt;
  
      $jq21('#form-signup_v1').validate({
          submit: {
              settings: {
                  inputContainer: '.field'
              },
              callback: {
                  onBeforeSubmit: function (node) {
  
                      myBeforeSubmitFunction(':D', ':)', node);
  
                  },
                  onSubmit: function (node) {
  
                      console.log('#' + node.id + ' has a submit override.');
  
                      //node.submit();
  
                  }
              }
          },
          debug: true
  
      });
  
      function myBeforeSubmitFunction(a, b, node) {
   document.getElementById("form-signup_v1").submit();
          console.log(a, b);
  
          $jq21(node).find('input:not([type="submit"]), select, textarea').attr('readonly', 'true');
          $jq21(node).append('&lt;div class="ui active loader"&gt;&lt;/div&gt;');
  
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>Every <code>$</code> on the page is switched to <code>$jq21</code> and the scripts won't work.</p>
  
  <p>Any ideas? Thank you.</p>