View on GitHub

Parsely-conditions

A jQuery plugin that adds conditional logic to the Parsely.js form validation library

Download this project as a .zip file Download this project as a tar.gz file

< Back to home

Dialog Only Example

This example shows how you can make a div appear, without toggline validation on any additional fields. Selecting "No" shows a new dialog on the page.

Do you like octocat?
Yes:
No:
Uhh... You realize you're on GitHub at the moment right?!

Here's the plugin code used for this example.

var fValidate = $.parselyConditions({
        formname: 'customForm',
        validationfields: [{
            fid: 'formTrigger',
            ftype: 'radio',
            fvalue: 'nope',
            faffected: false,
            fhide: 'maskDiv'
        }],
    });