Disallow characters
-
Hi,
I have a custom input field developed by a theme into which the decimal separator (.) and letter e as well as numbers are allowed. It is a number field.
To mask it, I used the function to add custom mask:
function custom_masks_form_fields() { ?> <script type="text/javascript"> jQuery(document).ready(function($){ $("input[name='year']").mask('0000'); }); </script> <?php } add_action('wp_footer', 'custom_masks_form_fields', 111);
The problem is that the mask did not bypass the input of the decimal separator (.) and letter e (exponent). Is there a way to achieve this?
Thank you
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Disallow characters’ is closed to new replies.