appendto()
is a built-in method in JQuery used to insert an HTML element at the end of another element. Its syntax is:
(v).appendTo(s)
Where:
v
is the content that will be addeds
is the element to which the content will be added toappendto()
will append to all the s
elements within the page.
You can add this by two methods:
Span is an HTML tag that does not do anything on its own, but can be referred to in JQuery to contain the text that we wish to apply:
Rather than adding content using a tag, you can directly add content using a <p> tag.
Free Resources