Home  >  jQuery

Example of .delay() in jQuery

April 30, 2013
.delay() in jQuery, delayes the task execution for a the fixed time. .delay() works as a timer. In our example there is a .delay() which will stop execution for the given time.
Find the example.

<!DOCTYPE html>
div { position: absolute; width: 50px; height: 50px; float: left; }
.first { background-color: red; left: 0;}
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<div class="first"></div>
$("button").click(function() {


©2022 concretepage.com | Privacy Policy | Contact Us