From 4d1d5cd2f9de8df87e70f42ad4529b13381f8429 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aldimar=20J=C3=BAnior?= <98884282+aldimar-junior@users.noreply.github.com> Date: Mon, 7 Apr 2025 15:20:50 -0300 Subject: [PATCH] Changing wording from "cannot" to "should not" --- entries/text.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entries/text.xml b/entries/text.xml index ff9c537e..616b8a2c 100644 --- a/entries/text.xml +++ b/entries/text.xml @@ -22,7 +22,7 @@
Demonstration Box list item 1 list item 2
The .text()
method cannot be used on form inputs or scripts. To set or get the text value of input
or textarea
elements, use the .val()
method. To get the value of a script element, use the .html()
method.
The .text()
method should not be used on form inputs or scripts. To set or get the text value of input
or textarea
elements, use the .val()
method. To get the value of a script element, use the .html()
method.
As of jQuery 1.4, the .text()
method returns the value of text and CDATA nodes as well as element nodes.
<p>This is a test</p>
- The .text()
method cannot be used on input elements. For input field text, use the .val() method.
The .text()
method should not be used on input elements. For input field text, use the .val() method.
As of jQuery 1.4, the .text()
method allows us to set the text content by passing in a function.
$( "ul li" ).text(function( index ) {