#StackBounty: #javascript #jquery #html How to use JQuery InputMask with HTML pattern

Bounty: 50

I have HTML input box for phone numbers.

I’m using InputMask to format input 860000000 in following:

8 600 00 000

I’m also using HTML pattern to check if numbers starts with 86 and there are total 9 digits, but with InputMask it stopped working, and can’t achieve It in any way:

<label for="phone" class="first-col">Mobile No.:</label>
<input type="text" id="phone" placeholder="8 600 00 000" required pattern="(86)d{7}" />

Have you any ideas?

There is JS Fiddle


Get this bounty!!!