Add jQuery input masking

There are a few jQuery plugins that provide input masking to enforce specifically formatted input from the user.


Below is an example of using input masking to ensure the phone and sms phone are entered correctly.


The plugin used in this example is found here..


You will need to download the plugin as jquery.maskedinput.js and upload it to your server in the ABPro main folder..



Now edit these code block files:



Add the red code:

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

<script src="/<?php echo JURI::base( true );?>/components/com_rsappt_pro3/jquery.maskedinput.js"></script>


The normal placeholder text shows until the user starts to enter in the box, then the mask shows.