javascript - function(value) {return value.replace(/[^0-9]/g,"") }
This convertor function strips any non-numeric characters from the INPUT element. Now, if you enter the phone number (206) 555-9999 into the phone input field then the value 2065559999 is assigned to the phone property of the contact object
http://weblogs.asp.net/scottgu/archive/2010/05/07/jquery-templates-and-data-linking-and-microsoft-contributing-to-jquery.aspx
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment