Jquery email validation not validate email

375
November 23, 2016, at 1:44 PM

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"
                }
            }
    });
});
Rent Charter Buses Company
READ ALSO
Randomly check a radio button after a certain time

Randomly check a radio button after a certain time

How do I randomly check a new radio button after a certain time?.

301
Combining elements of 2 dimentional array

Combining elements of 2 dimentional array

I have an JavaScript array:.

336
Google Maps - Dynamically Generating Markers on Map [closed]

Google Maps - Dynamically Generating Markers on Map [closed]

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....

293
Using jQuery to toggle menu visibility

Using jQuery to toggle menu visibility

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.

398