bouncer icon indicating copy to clipboard operation
bouncer copied to clipboard

if I have two form in a page. How can I call bouncerFormValid two times for 2 form?

Open nFnK opened this issue 4 years ago • 1 comments

Hello, I would like to use two form in a page. But I do not know how can call bouncerFormValid two time ? For example

  1. form id #form1
  2. form id #form2

document.addEventListener('bouncerFormValid', function (event) { var form = event.target; }, false);

nFnK avatar Jan 05 '20 13:01 nFnK

I did it. These is works

$(document).on('bouncerFormValid', '#form1', function(e) { e.preventDefault(); alert('1 Form submitted successfully!'); });

$(document).on('bouncerFormValid', '#form2', function(e) { e.preventDefault(); alert('2 Form submitted successfully!'); });

nFnK avatar Jan 05 '20 14:01 nFnK