开发者

Submit a form in a jQuery Dialog box and close upon successful POST to MVC Action

开发者 https://www.devze.com 2023-01-06 13:31 出处:网络
I am using the method from this question 开发者_开发百科to create a pop-up to show a form where the user must \"sign\" it and then click submit. I have the pop-up working and displaying data. Now I wa

I am using the method from this question 开发者_开发百科to create a pop-up to show a form where the user must "sign" it and then click submit. I have the pop-up working and displaying data. Now I want to submit the form to a POST action and close the pop-up if the POST was successful.

I have been scouring the internet looking for something close to what I think I am looking for, but seeing anything. Can someone offer me some direction?


You can either do it manually via http://api.jquery.com/jQuery.post/ (it has on success callback) or use jQuery ajax form plugin http://jquery.malsup.com/form

0

精彩评论

暂无评论...
验证码 换一张
取 消