I'm trying to find a javascript event that gets fired when a ninja form is ready and is loaded in the DOM.
I looked over the documentation and searched around google for a while, couldn't find anything...
I'm using Ninja Forms 3+ (even though 2 was a hella lot better....)
I'd rather not have an interval running to check if the form has been loaded yet.
Thanks!
Unfortunately the pretty Ninja Forms plugin is not documented properly. Spent much time before I found this solution (using jQuery):
jQuery(document).on( 'nfFormReady', function() {
console.log('Form is ready');
// Place events handlers here:
jQuery(".contact-form input[type=button]").on('click', function(){
console.log('Do something');
})
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With