Skip to content
Advertisement

Open a popup box after receiving result from ajax

i have a ajax code that works properly and gives the desired result. I want to modify this code and want that when a reply is received from ajax a popup/modal box should get opened.

I am able to open popup/modal box on a click of a button

JavaScript

but don’t know how to open it automatically within ajax.

here is my ajax code

JavaScript

can anyone please tell me how it can be done

Advertisement

Answer

You can use $("#bsModal3").modal('show'); inside your result.

See more about modal methods

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