ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
How to close popup in javascript
Title:
B
I
{code}
?
I have this code @(Html.Awe().InitPopup() .Name("confirm") .Title("Reboot") .Content("<b>DO you want to reboot ?</b>") .Button("OK", "reboot") ) In the reboot js function, I make an ajax call. On success I want to close the popup. How do I proceed?
Save Changes
Cancel
rakesh
asked at 10 Mar 2020
Answers
B
I
{code}
?
You can see this being done here: https://demo.aspnetawesome.com/PopupDemo#Buttons so you could do this: function reboot() { var $this = $(this); // call on ajax success $this.data('api').close(); }
Save Changes
Cancel
Omu
answered at 10 Mar 2020
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK