Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Trying to use this jquery plugin: Masked Input Plugin

TexasApexDeveloperFeb 19 2009 — edited Jan 19 2010
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
This post has been answered by dmcghan on Mar 11 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 16 2010
Added on Feb 19 2009
21 comments
4,395 views