I am planning to have an input textbox with leading string and zeros with maximum length of 6 leading zeros. When user type in the input box, the leading zero will be erase until it reach max 6 letters. The initial string is fixed and cannot be erase.
For example,
JS000000 //a fixed string (which is the letter 'JS') followed by 6 leading zeros
JS000010 //user has typed the letter '10'
JS123456 //user has typed the letter '123456' and cannot be type further
HTML
<input type="text" name="js" class="form-control" id="js_leading_zero">
JS/JQUERY
$('#js_leading_zero').on('keyup', function() {
console.log('i really have no ideas what to do here')
});