title: how to validate the pattern in form submit
body: <p>At the time of given the input in edittext field it show error if anyone will put incorrent IP Address format of IP adsress should be like these 000.000.0.000 plz help me out </p>
  
  <p>IN HTML5:- </p>
  
  <pre><code>&lt;div data-role="content"&gt;
       &lt;form id="form"&gt;
           &lt;div data-role="fieldcontain"&gt;
                      &lt;label for="ip"&gt;IP Address/System Name&lt;/label&gt;
                      &lt;input name="ip" id="ip" type="text" pattern="((^|\.)((25[0-5])|(2[0-4]\d)|(1\d\d)|([1-9]?\d))){4}$"&gt;                       
           &lt;/div&gt;
           &lt;div style="text-align:center;"&gt;                   
                      &lt;div data-role="button" data-theme="b" data-inline="true" id="button1"&gt;Update&lt;/div&gt;
           &lt;/div&gt; 
  &lt;/div&gt;
  </code></pre>