sridhar sridhar - 1 year ago 166
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.

Answer Source

Try adding below script for showing Formc after 20 secon.

setTimeout(function(){ $('#FormC').show() }, 20000);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download