Working with Selections | jQuery Learning Center

PHOTO EMBED

Sat May 29 2021 01:10:00 GMT+0000 (UTC)

Saved by @ejiwen

$( "#content" )
    .find( "h3" )
    .eq( 2 )
    .html( "new text for the third h3!" );
content_copyCOPY

If you call a method on a selection and that method returns a jQuery object, you can continue to call jQuery methods on the object without pausing for a semicolon. This practice is referred to as "chaining":

https://learn.jquery.com/using-jquery-core/working-with-selections/