Slide toggle by time in jquery


<html>
<head>
<script
  src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript">
  $(document).ready(function() {
    $("button").click(function() {
      $(this).slideToggle(2000);
    });
  });
</script>
</head>
<body>
  <div>
    Check the button you click
    <button>Click</button>
  </div>
</body>
</html>

Comments

Popular posts from this blog

Shutdown Computer With Funny Reason

Hidden Attribute in javascript

Draw animated loading spinner canvas in Javascript