I'm using Jquery validation and i tried to implement it, but it's not working on my side. How to fix this?
I create a new js file and I call this file with this
function add_email_validation(){
wp_register_script( 'jqueryvalidate', get_template_directory_uri() . '/js/jquery.validate.min.js', array('jquery'));
wp_enqueue_script('jqueryvalidate');
wp_register_script( 'jqueryvalidate', get_template_directory_uri() . '/js/additional-methods.min.js', array('jquery'));
wp_enqueue_script('additionalmethods');
wp_register_script( 'email-validation', get_template_directory_uri() . '/js/email-validation.js', array('jquery'));
wp_enqueue_script('email-validation');
Here's the link http://bit.ly/1O1QxmT
Script:
jQuery(document).ready(function($){
$('#subscription').validate({
errorElement : 'span',
errorLabelContainer: '.email_error',
rules: {
subscriptions: {
required: true,
email: true
}
},
messages: {
subscriptions: {
required: "Email is required",
email: "Invalid email format"
}
}
});
});
Firebase Cloud Functions: PubSub, "res.on is not a function"
TypeError: Cannot read properties of undefined (reading 'createMessageComponentCollector')
How do I randomly check a new radio button after a certain time?.
I"m new to google maps and am trying to get all the locations that are returned on my search page to appears on the corresponding map but I can't make it work. I have each listing display their longitude and latitude with the listing and I'm using the code below....
I have a code for a navigation page I'm working on, to be used on the tumblr platform. The navigation is basically set up like so, with #navstart being the category of the navigation items and #navitem used for individual items.