What is equivalent of ScriptManager.RegisterStartUpScript() of Asp.Net in Php? I want to call some Javascript function from my php function i.e after some event is fired (may be adding record to database) i want to call javascript function. The event is fired using Ajax of JQuery.
Thanks in advance 🙂
If the event is fired using JQuery, you can use the Success parameter of the Ajax options to specify the function to call.
For example: