CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   ASP.NET (http://www.codingforums.com/forumdisplay.php?f=40)
-   -   can't get maskedinput to work in asp page (http://www.codingforums.com/showthread.php?t=278945)

sharonc7 10-23-2012 07:46 PM

can't get maskedinput to work in asp page
 
Hi,
I am trying to add a mask to my field txtCommercial i.e (999) 999-9999. I would appreciate any help you can give me. thank you. I have the following info on my asp page:

Code:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> 

02   

03 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

04   

05 <html xmlns="http://www.w3.org/1999/xhtml"> 

06 <head runat="server"> 

07    <title>GDR Request Form</title> 

08    <script src="Scripts/jquery-1.8.2.js" type="text/javascript"></script> 

09    <script src="Scripts/jQuery.maskedinput.js" type="text/javascript"></script> 

10   

11         

12    <script language="javascript" type="text/javascript"> 

13            jQuery(function ($) { 

14                $("#txtCommercial").mask("(999) 999-9999"); 

15            }); 

16    </script> 

17 </head> 

18 <body> 

19  <table class="ftitle2"> 

20          <tr> 

21              <td style="text-align:left" width="25px"> 

22                Commercial:</td> 

23              <td> 

24                <asp:TextBox ID="txtCommercial" runat="server" Width="110px" ToolTip="Please Enter: (999) 999-9999"></asp:TextBox> 

25              </td> 

26  </table> 

27 </body> 

28 </html>



All times are GMT +1. The time now is 09:24 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.