...

View Full Version : can't get maskedinput to work in asp page



sharonc7
10-23-2012, 08:46 PM
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:



<%@ 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>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum