title: reloading page with jquery with conditional
body: <p>I have this code (jQuery).
  Basically I want to reload page if there is  input with <code>#SchoolName</code> existing but it misses <code>class="ac_input"</code>, IF that class is present, do not reload page.
  Is this possible?</p>
  
  <pre><code>&lt;input type="text" onfocus="showVal(this.value);" value="" id="SchoolName" size="30" maxlength="50" name="SchoolName" autocomplete="off" class="ac_input"&gt;
  
  function autocomplete() {
           $("#SchoolName").autocomplete("ajaxFuncs.php",{cacheLength:1,mustMatch:1,extraParams:{getSchoolName:1}});
      };
  
  $(document).ready(function(){
      setTimeout("autocomplete()", 500);
      // what do i have to add here???
  });
  </code></pre>