title: How to solve this JavaScript problem?
body: <p>When I go to <a href="http://www.kambariokas.eu/prideti.php" rel="nofollow">http://www.kambariokas.eu/prideti.php</a>, I get an error <strong>$("#nav").spasticNav is not a function.</strong><br>
  In other pages this script works perfectly, but this isn't a script for validation. Maybe you have suggestions how to solve this?
  Here is code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
     $('#nav').spasticNav();
          $(document).ready(function(){
              $.validator.addMethod("username", function(value, element) {
                  return this.optional(element) || /^[a-z0-9\_]+$/i.test(value);
              }, "Username must contain only letters, numbers, or underscore.");
  
              $("#skelbimas").validate();
  
          });
  
      &lt;/script&gt;
  </code></pre>