sridhar sridhar - 6 months ago 75
jQuery Question

Jquery for set timeout

I have an existing jquery code that calls for showing up div contents. Here is it:

url: 'sendform.php?action=datapp',
type: 'POST',
data: data,
success: function (response) {
if (response == 'SUCCESS') {

Now, I want to add a line here that starts a timer (timeout), which shows FormC after 20 seconds. Please help.


Try adding below script for showing Formc after 20 secon.

setTimeout(function(){ $('#FormC').show() }, 20000);