jQuery selector chaining example


$(“selector1,selector2,selector3, selector4….”).method() is used for jQuery selector chaining.


jQuery selector chaining example and code

jQuery selector chaining example


<script type="text/javascript">
         $(document).ready(function(){
          $("#animateButton").click(function(){
           $("#demoDiv .myClass #demoPara").animate({backgroundColor:'yellow'},"slow").css("border","5px solid green").slideUp("slow");
          });
          });
</script>    

Try it »


Add Comment

📖 Read More


Advertisements