title: Cannot read property 'attr' of undefined
body: <p>Why am I getting this error on my code?</p>
  
  <blockquote>
    <p>Cannot read property 'attr' of undefined`</p>
  </blockquote>
  
  <pre><code>$(document).ready(function() { 
      var currentPage = jQuery.url.attr("path");
      $(':input').blur(function () {
          if ($(this).val().length &gt; 0) {
              pageTracker._trackEvent("Form: " + currentPage, "input_exit", $(this).attr('name'));
          } 
      });
  });
  </code></pre>
  
  <p>My fiddle: <a href="https://jsfiddle.net/4ocdcqrf/" rel="nofollow">https://jsfiddle.net/4ocdcqrf/</a></p>