Menu
i want to do that if i enter the number(not more than 7 digits) in the following format..for ex…
bp0001–it will automatically changed to BP0001
br0001–it will automatically changed to BR0001
jv0001–it will automatically changed to JV0001
[code]
Voucher Number:<input name=”vouno” size=6 maxlength=”6″ onblur=”if(! (/^(BP|BR|JV)[0-9]{4}$/).test(this.value)) { alert(‘Format not valid’); this.value = ”;}”>