How-to-Create-Chaining-in-jQuery

How to Create Chaining in jQuery

In this article, you will learn How to Create Chaining in jQuery.

Example:-

<html>
<head>
<title>jQuery Chaining</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
  $("button").click(function(){
    $("#p1").css("color", "red")
      .slideUp(2000)
      .slideDown(2000);
  });
});
</script>
</head>
<body>
<p id="p1">Welcome ti Hub of Tutorials!!</p>
<button>Click here</button>
</body>
</html>

Read on Facebook

1 Comment

  • Starla

    September 11, 2020 - 7:00 pm

    Magnificent beat ! I wish to apprentice while you amend your web site, how can i subscribe for a blog website?
    The account aided me a appropriate deal. I were tiny bit familiar of this your broadcast provided brilliant
    transparent concept

Leave A Reply