wickywills
1/5/2018 - 2:18 PM

Targeting fields within Ninja Forms

If you're trying to add fields or wait for changes in, for example, a select field and then apply your own JS, you'll soon run into issues. This is because Ninja Forms loads the forms asynchronosly. Therefore, something like the following is required

jQuery(document).on('nfFormReady', function(){
    // Do your thing here
});