title: HTML5, how to force input pattern validation on value change?
body: <p>I am trying to learn HTML5 and came across the following. I would like to use the <code>pattern</code> input keyword to validate the input as the user types it (e.g. validation after pressing tab or changing focus from input box). </p>
  
  <p>I have tried the following:</p>
  
  <pre><code>&lt;input name="variable" value="" tabindex="1" maxlength="13" required="required" pattern="${expectedValue}" onchange="this.variable.validate()" /&gt;  &lt;/li&gt;
  </code></pre>
  
  <p>And as well:</p>
  
  <pre><code>&lt;input name="variable" value="" tabindex="1" maxlength="13" required="required" pattern="${expectedValue}" /&gt;  &lt;/li&gt;
  </code></pre>
  
  <p>I made up the code for </p>
  
  <pre><code>onchange="this.variable.validate()" 
  </code></pre>
  
  <p>How to trigger the validation on value change? I am able to do this only <code>onSubmit</code>.</p>