How would I set a timeout for a bootstrap modal? After getting the ajax data back that the message returned by php contains the term success, I want to give the
success
$('#submit1').click(function(){ setTimeout("$('#myModal').modal('hide');",3000); });
this is working for popup delaying 3 seconds in closing. please check with the $('#submit1') for this click I have written the code.
$('#submit1')