Skip to content
Advertisement

How do i submit a form with jqueryui dialog button,

I want to submit a form using jqueryui button. I had some code but it doesn’t work. Here is the code:

JavaScript

When a person puts a link in text area and submit the form, the jQuery dialog box appear with three buttons, I want that when some one click the Yes button on dialog box, the form automatically submit. Everything is working fine, but When I click the button yes, it doesn’t work.

Advertisement

Answer

Your submit_form function is not actually trying to submit the form. It is currently adding a click event onto the “Click Me” button which if pressed will then submit your form.

If you want clicking the “Yes” button of your dialog to submit the form, try this:

JavaScript

Also make sure the name of your submi_form method is just a typo here rather than in your live code…you are missing a “t”.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement