In JQuery, this activity is called as chaining which means you can chain together actions/methods. Below snippet is the example of Jquery Chaining.

<script>
$(document).ready(function(){
    $("button").click(function(){
        $("#p1").css("color", "red").slideUp(2000).slideDown(2000);
    });
});
</script>

Related Posts:

  • Automatic Conversion to array is not possible in PHP. Why? The behavior of an automatic conversion to array is currently undefined in PHP. Because PHP supports indexing into strings via offsets using the same syntax as array indexing. E.g., <?php  $a  &… Read More
  • What is Laravel? Laravel is a free, open source PHP web application framework, designed for the development of model–view–controller (MVC) web applications. Features: Laravel uses Composer as a dependency manager to add framework-agnost… Read More
  • Unsigned Integers in PHP PHP does not support unsigned Integers and Integer size can be determined using the constant PHP_INT_SIZE, and maximum value using the constant PHP_INT_MAX. … Read More
  • What is Type Juggling? When you declare a variable, there is no need to mention a specific type explicitly. PHP will take care of the automatic type conversion implicitly. That is to say, if you assign a string value to variable var, var b… Read More
  • How will you get the uploaded file name in PHP? $filename=$_FILES['fileToUpload']['name']; Note: "fileToUpload" will be taken from name of the input type '<input type="file" name="fileToUpload" id="fileToUpload">' … Read More

0 comments:

Blog Archive

Total Pageviews

15581

Popular Posts