Basically I have an HTML textbox and the user enters digits. What I want is to automatically put a - after the 7th digit Basically have this pattern:
0000000-0000
<input type="text" class="form-control width-160" name="value" required maxlength="10"/>
I'm pretty sure I need to use a regex for this, but can I use it directly in HTML or do I need some jQuery ?