How to submit a form using jQuery?

I have a form where I want to show a confirmation popup before saving. I mean I want to take confirmation from the user before submitting the form.
For example, I used a bootstrap modal to show the confirmation popup. There are 2 buttons, Close and Save Changes So when the user clicks on the save changes button I want to submit the form as well.
So how can I submit the form on the bootstrap modal button click?

If you just want to submit the form then why don’t you move our bootstrap modal inside the form? And use submits type input or button.

If you are doing something before submitting the form, then yes you need JavaScript / jQuery to submit the form.

$('#some-button').click(function () {


$('#some-button').click(function () {

Both method will work fine.