<h1>Phone field scrubbing utility</h1>
<ul>
<li>Enter any content (characters, puntuation, etc.)</li>
<li>As long as there are 10 digits it will validate true</li>
<li>Providing the first digit is not 0 or 1</li>
<li>And providing there is not 1 digit repeated 10 times</li>
<li>The "format it" button will do just that</li>
<li>The "submit it" button will strip out everything but digits</li>
</ul>
<input class="phone" id="phone1" value="XXXXXXXXXX"><br>
<input class="phone" id="phone1" value="XXXXXXXXXX"><br>
<input class="phone" id="phone1" value="XXXXXXXXXX"><br>
<input type="button" id="format" value="format it">
<input type="button" id="submit" value="submit it">