Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
IFSC code:ANDB0001478
Help me on javascript validation.first 4 are alphabets and remaining 7 are digits.mamimum length is 11.
how to validate on onkeypress event.
Posted
Updated 25-Sep-14 19:30pm
v3
Comments
Vijay M 26-Sep-14 1:27am    
how to validate Indian IFSC code(SBIN0015916) code on key press event in javascript.These are the rules for validating first 4 are alphabets and last 6 are numerics.

Please try this[^]

Check this may be this would help you.
Thanks
:)
 
Share this answer
 
Try using Regular expression as follows

C#
[A-Z|a-z]{4}[0][\d]{6}$


find more here : http://regexlib.com/REDetails.aspx?regexp_id=3780[^]
 
Share this answer
 
Not a question. Not clear what help would you need. Please see:
http://www.w3schools.com/js/js_regexp.asp[^],
http://en.wikipedia.org/wiki/Indian_Financial_System_Code[^].

—SA
 
Share this answer
 
Comments
Vijay M 26-Sep-14 1:27am    
how to validate Indian IFSC code(SBIN0015916) code on key press event in javascript.These are the rules for validating first 4 are alphabets and last 6 are numerics.
I think now it is clear to you.
Sergey Alexandrovich Kryukov 26-Sep-14 2:07am    
Thank you, but is simply means that you should accept my answer formally (or both of my answers), follow the advice and stop re-posting. (Re-posting is considered as abuse.)
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900