Calling Javascript function using Ajax submit button

Hello All,

I want to call javascript function by using Ajax Submit Button. Please give me the syntax for AJAX SUBMIT BUTTON to call Javascript.

Thnks in Advance…

If you just have to call a javascript function without submitting anything you can just use a normal button and call the function you need on click events.

If instead you need specifically the ajaxSubmitButton you can use the ajax options (take a look here) like beforeSend, complete etc.