Answer the question
In order to leave comments, you need to log in
How to add validation for the field in Latin letters Contact form?
Good day. I use this validation for CF7.
For certain fields, this solution works great. For example, now I have it set up like this:
add_action('wp_footer', 'wpmidia_activate_masked_input');
function wpmidia_activate_masked_input(){
?>
<script type="text/javascript">
jQuery( function($){
$(".tel").mask("+79999999999");
$(".inn").mask("999999999999");
$(".snils").mask("99999999999");
$(".card").mask("9999999999999999");
$(".codrazdel").mask("999999");
});
</script>
<?php
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question