Posted: 10/11/2011
How to i validate an input textbox to allow only Id numbers with the following format. 63-931365N26. Please help urgently
<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Title</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script> <script src="http://cloud.github.com/downloads/digitalBush/jquery.maskedinput/jquery.maskedinput-1.3.min.js" type="text/javascript"></script> <script type="text/javascript" > $(function ($) { $("#<%= TextBox1.ClientID %>").mask("99-999999N99"); }); </script> </head> <body> <form id="HtmlForm" runat="server"> <div> <asp:TextBox runat="server" ID="TextBox1"></asp:TextBox> </div> </form> </body> </html>