insert

UK[ɪnˈsɜ:t] US[ɪnˈsɜ:rt]

vt.Insert; embed; (in the article) add; insert

n. Insertion; addition (especially a small picture inserted or overprinted in a page of printed pictures); insert (of a book or newspaper); addition

before

英[bɪˈfɔ:(r)]   美[bɪˈfɔr,-ˈfor]   

prep.Before...;before,better than;in front of...;with...

conj.Before...;before...;earlier than...;rather than...

adv.before, before; in front, in front

jquery insertBefore() method syntax

Function:insertBefore() method inserts HTML tags or existing elements before the selected element. If this method is used on existing elements, they will be moved from their current position and added before the selected element.

Syntax:$(content).insertBefore(selector)

Parameters:

Parameter Description
content Required. Specifies the content to be inserted. Possible values: Selector expression HTML tag
selector Required. Specifies where to insert the selected element.

jquery insertBefore() method example

    

这是一个段落。

这是另一个段落。

Run instance »

Click the "Run instance" button to view the online instance