Support » Fixing WordPress » Adding Javascript Library (Livevalidation)

  • I’m trying to get livevalidation ( to work on my wordpress site but I can’t seem to get it to work. I added the js file to my header.php file between the meta and style tags and I have the following code on the page that contains the form:

        var f1 = new LiveValidation('d_fn');
        f1.add(Validate.Exclusion, {within:['First Name']});
        var f2 = new LiveValidation('d_ln');
        f2.add(Validate.Exclusion, {within:['Last Name']});
        var f3 = new LiveValidation('d_s1');
        var f4 = new LiveValidation('d_cy');
        var f5 = new LiveValidation('d_phone');
        f5.add(Validate.Length, {is:10});
        var f6 = new LiveValidation('d_email');
        var f7 = new LiveValidation('d_pw1');
        var f8 = new LiveValidation('d_pw2');
        f8.add(Validate.Confirmation, {match: 'd_pw1'});

    This code works perfectly outside of wordpress, btw.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Adding Javascript Library (Livevalidation)’ is closed to new replies.