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
<desc>A function returning the HTML content to set. Receives the index position of the element in the set and the old HTML value as arguments. jQuery empties the element before calling the function; use the oldhtml argument to reference the previous content. Within the function, <code>this</code> refers to the current element in the set.</desc>
60
+
<desc>A function returning the HTML content to set. Receives the
61
+
index position of the element in the set and the old HTML value as arguments.
62
+
jQuery empties the element before calling the function;
63
+
use the oldhtml argument to reference the previous content.
64
+
Within the function, <code>this</code> refers to the current element in the set.</desc>
61
65
</argument>
62
66
</signature>
63
67
<desc>Set the HTML contents of each element in the set of matched elements.</desc>
64
68
<longdesc>
65
69
<p>The <code>.html()</code> method is not available in XML documents. </p>
66
-
<p>When <code>.html()</code> is used to set an element's content, any content that was in that element is completely replaced by the new content. Consider the following HTML:</p>
70
+
<p>When <code>.html()</code> is used to set an element's content,
71
+
any content that was in that element is completely replaced by the new content.
72
+
Additionally, jQuery removes other constructs such as data and event
73
+
handlers from child elements before replacing those elements with the new content.</p>
0 commit comments