jQuery Internal inserts



$("Element").append("content")

Append content to the selected element


$("Element").appendTo("content")

Append the selected element to another element, in fact, using this method is to reverse the conventional $(A) .append(B) operation, that is not to append B to A, but to append A to B;


$("Element").prepend("content")

Appends content to the selected element and prepends it to the selected element


$("Element").prependTo("content")

Append the selected element to another element inside and forward, in fact, using this method is to reverse the conventional $(A).prepend(B) operation, that is not the B to A in front, but Prefix A to B.




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