I am using string like AAES001. I want to increment part of the string like 001 to 002 one by one. As i click the submit button it increments the string automatically. The string should not be repeated it only increments serially.
I am storing the string in a hidden field called AAESNo.
I have done this:
var val1= val.substring(4, 7);
var val2= val.substring(0, 4);