Element Data Methods.text()On this page.text()Get or Set Element the textContent value.Variations.text(): String|undefinedGets the textContent value from the first matching elementconsole.log( $( "p" ).text() );.text( String text ): selfSets textContent to the argument value for all the matching elements.$( "p" ).text('Text!');