Forum
Welcome, Guest
Username: Password: Remember me

TOPIC: how can i catch the submit button in the jS

how can i catch the submit button in the jS 11 years 9 months ago #548

  • john
  • john's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
how can i catch the submit button in the jS?

I want to do an alert when the Submit button has been pressed



This wont work
 $('#9_element_submit').submit(function () { // catch the form's submit event
                   alert("caught");
               });
The administrator has disabled public write access.

Re: how can i catch the submit button in the jS 11 years 9 months ago #550

  • Administrator
  • Administrator's Avatar
  • OFFLINE
  • Administrator
  • Posts: 795
  • Thank you received: 64
Dear John
You should add a custom button instead of the standard submit and reset buttons and use your custom function as onclick for that button.

The standard submit function (which you should call after your custom script) is:
check_required('submit', 'form_id_temp')

Best regards
Web-Dorado team
The administrator has disabled public write access.
Time to create page: 0.183 seconds
Powered by Kunena Forum