I have a TextBox id txtInvoiceNo in which Invoice No must be in the given format AD2122IN01999.
Means First Two will be in letters then numeric then again two letters and so on as mention above in yellow color
Invoice No.
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Uttam KumarRank #1,076 · 1.8K reputationPosted Apr 28, 2022, 5:44 AM EDT
You check it on button click
btnsave() { var txtData = document.getElementById(“txtInvoiceNo”).value; If(txtData != “”) { //.. Apply regex rule } }Follow this logic it should work
Sandeep KumarRank #1,642 · 937 reputationPosted Apr 28, 2022, 6:25 AM EDT
Sandeep KumarRank #1,642 · 937 reputationPosted Apr 28, 2022, 8:32 AM EDT