You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -604,6 +605,17 @@ <h2 id="Element"> Element </h2>
604
605
</code></pre>
605
606
<p>You could replace <code>this.value</code> with <code>$(this).val()</code> to access the value of the text input via jQuery, but in that case you wouldn't gain anything.
606
607
</p>
608
+
<h2id="Text"> Text </h2>
609
+
<p>Text is a node of the Document Object Model (DOM) that represents the textual content of an <ahref="#Element">element</a> or an attribute. Consider the following code:
<p>If you retrieve the children of the paragraph of the example as follows:
614
+
</p>
615
+
<pre><codedata-lang="javascript">var children = document.getElementById( "target" ).childNodes;
616
+
</code></pre>
617
+
you obtain two children. The first one is the <ahref="#Element">element</a> representing the <code>b</code> tag. The second child is a text node containing the string " world".
618
+
</p>
607
619
<h2id="jQuery"> jQuery </h2>
608
620
<p>A jQuery object contains a collection of Document Object Model (DOM) elements that have been created from an HTML string or selected from a document. Since jQuery methods often use CSS selectors to match elements from a document, the set of elements in a jQuery object is often called a set of "matched elements" or "selected elements".
0 commit comments