jQuery External insert



$("Element").after("content")

Append content to the selected element


$("Element").before("content")

Adds the selected element before it


$("Element").insertAfter("content")

The use of this method is reversed the conventional $(A).after(B) operation, that is not inserted into the B behind the A, but A inserted behind the B.


$("Element").insertBefore("content")

Using this method is to reverse the conventional $(A).before(B) operation, that is not to insert B to the front of A, but A to B in front.




Copyright 2014-2017 by DeveloperTut.com. All Rights Reserved.
TwitterGoogle+Facebook