Trying to use this jquery plugin: Masked Input Plugin
Folks,
Can anyone shed some light on how to use a jquery plugin like the following: Masked Input Plugin (URL: [http://digitalbush.com/projects/masked-input-plugin/]). I have seen it used in standard html files and thought it was VERY slick..
I know to have the javascript to setup the loading of jquery and the plugin:
<script src="jquery.js" type="text/javascript"></script>
<script src="jquery.maskedinput.js" type="text/javascript"></script>
Now I need to use the following type syntax for calling its map function: (Quote from their site)
Next, call the mask function for those items you wish to have masked.
+jQuery(function($){+
+$("#date").mask("99/99/9999");+
+$("#phone").mask("(999) 999-9999");+
+$("#tin").mask("99-9999999");+
+$("#ssn").mask("999-99-9999");+
+});+
I had thought to make the function call in an on-blur or onchange event, but it doesn't seem to work..
Any ideas?
Thank you,
Tony Miller
Webster, TX
"Understanding is a three edged sword. Your side, their side, and the truth" - Kosh Naranek