title: How can I maintain focus on text box being validated without locking other text boxes?
body: <p>Here is an example of a validation method I am using:</p>
  
  <pre><code> if(currentFieldCategory=='e')
      {
          var atpos=currentFieldValue.indexOf("@");
          var dotpos=currentFieldValue.lastIndexOf(".");
          if (atpos&lt;1 || dotpos&lt;atpos+2 || dotpos+2&gt;=currentFieldValue.length) 
          {
              echo('Please enter a valid email address');
      currentField.focus();   
              return 'Please enter a valid email address';
          } 
      }
  </code></pre>
  
  <p>If the user does not enter a valid email then an error message is triggered.  Using currentField.focus(); the focus stays on the current text box being validated, but all other text boxes are locked until the correct data is entered.</p>
  
  <p>I am wondering if there is a way of maintaining the focus on the current text box without locking the other text boxes (i.e. the user can still click in other text boxes).  Because my validation works both on user entry and form submission, it is OK for users to click in other text boxes even if the current text box doesn't contain the correct data.</p>
  
  <p>Could someone help with this?</p>
  
  <p>Thanks,</p>
  
  <p>Nick</p>