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> …

Continue ReadingHow to Create Chaining in jQuery