Syntax Error on "jquery.jvcf7_validation.js" Line 254 of Version 0.3

Home Forums Jquery Validation for Contact Form 7 Syntax Error on "jquery.jvcf7_validation.js" Line 254 of Version 0.3

This topic contains 2 replies, has 2 voices, and was last updated by  Paul 3 years, 9 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1527

    michael angelo

    Just sharing this problem I found for Version 0.3:

    Syntax Error on “jquery.jvcf7_validation.js” Line 254 of Version 0.3

    jQuery(document).ready(function(){
    	jQuery('.wpcf7-validates-as-required').addClass('required');
    	jQuery('.wpcf7-email').addClass('email');
    	<strong>jQuery('form.wpcf7-form"').each(function(){</strong>
    		jQuery(this).validate();
    	});	
    });
    #1530

    Dinesh
    Keymaster

    Hi Michael,

    I re-downloaded the plugin and check it but there is not tag in the code.

    The code goes like this
    jQuery(document).ready(function(){
    jQuery(‘.wpcf7-validates-as-required’).addClass(‘required’);
    jQuery(‘.wpcf7-email’).addClass(’email’);
    jQuery(‘form.wpcf7-form”‘).each(function(){
    jQuery(this).validate();
    });
    });

    Please remove the old copy and download a new one.

    Thanks

    #1546

    Paul

    Hi Dinesh,

    I think bbPress might have mangled Michael’s problem, the issue is not the -strong- tag, but the extra double-quote in the line, so:

    (‘form.wpcf7-form”‘).each

    becomes:

    (‘form.wpcf7-form‘).each

    It also makes the validation unusable until the submit button is pushed, which, on multi-page forms, makes this plugin difficult to use out of the box.

    [After it’s fixed, the plugin works really well though :)]

    Apologies for thread-jacking, hope you resolve it and release a new copy soon.

    Cheers,

    Paul

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Syntax Error on "jquery.jvcf7_validation.js" Line 254 of Version 0.3’ is closed to new replies.