Skip to content

Commit 8b4faab

Browse files
committed
after(): Improve first paragraph of long description
1 parent d70ba75 commit 8b4faab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entries/after.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</signature>
4646
<desc>Insert content, specified by the parameter, after each element in the set of matched elements.</desc>
4747
<longdesc>
48-
<p>The <code>.after()</code> and <code><a href="/insertAfter/">.insertAfter()</a></code> methods perform the same task. The major difference is in the syntax&#x2014;specifically, in the placement of the content and target. With <code>.after()</code>, the selector expression preceding the method is the container after which the content is inserted. With <code>.insertAfter()</code>, on the other hand, the content precedes the method, either as a selector expression or as markup created on the fly, and it is inserted after the target container.</p>
48+
<p>The <code>.after()</code> and <code><a href="/insertAfter/">.insertAfter()</a></code> methods perform the same task. The major difference is in the syntax&#x2014;specifically, in the placement of the content and target. With <code>.after()</code>, the content to be inserted comes from the method's argument: <code>$(target).after(contentToBeInserted)</code>. With <code>.insertAfter()</code>, on the other hand, the content precedes the method and is inserted after the target, which in turn is passed as the <code>.insertAfter()</code> method's argument: <code>$(contentToBeInserted).insertAfter(target)</code>.</p>
4949
<p>Using the following HTML:</p>
5050
<pre><code>
5151
&lt;div class="container"&gt;

0 commit comments

Comments
 (0)