I want to delay execution in betwen the follwoing codes:
$(\"#myName\").val(\"Tom\"); ///delay by 3s $(\"#YourName\").val(\"Jerry\"); //delay by 3s $(\"#his
You can use the setTimeout function. I think the syntax is
window.setTimeout('$("#YourName").val("Jerry")',3000);