george Posted January 31, 2008 Share Posted January 31, 2008 Back in the old days, there used to be something called an input template, or an input mask. It was a small bit of code that would make sure that the users input conformed to a specified format, like a phone number format. Is there a way I can do this with a CSS class? So, I can give a text field the class="phone", and the class would provide the parens and the dashes and restrict the number of characters to the number I specify? Please let me know if you know anything on this, or can direct me. Thanks Link to comment Share on other sites More sharing options...
Ingolme Posted January 31, 2008 Share Posted January 31, 2008 I've never heard of that before. You can only do that with Javascript. Link to comment Share on other sites More sharing options...
george Posted January 31, 2008 Author Share Posted January 31, 2008 That makes sence. Using an onkeypress function call I suppose. Link to comment Share on other sites More sharing options...
S@m Posted January 31, 2008 Share Posted January 31, 2008 Input masking...http://www.xaprb.com/blog/2006/11/02/how-t...-masks-in-html/ Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.