2
Answers

Only number input with a particular Pattern in asp.net

Hello, 
   i want to take input only number . 
   for Example  : 2016-2017
   Here total 8 digit but one hyphen (-) .
   The hyphen should be between the two year.
 
Conditions:
 
          I can not take other character as a input apart form number.
         The hyphen will come automatically after enter the 4 first digits , then last four digit we          can enter.
         After that we can not take any other digit because already 8 digits over in the text box.
         
 
I used jQuery also but i did not get...
Can any one suggest plz.................. 
   
 
 

Answers (2)