about 7 years ago
append():
$(selector).append(content,function(index,html))
Here, we have passed two parameters in the method:
The first one is the content which is a required field with values such as HTML elements, jQuery objects and DOM elements.
The second one is the function(index,html) which is a optional field. It returns the content to insert.
Example: Suppose we have the following HTML code
<div class='a'> <div class='b'>b</div> </div>
Suppose we want to insert div c in the div a at last place. For this we will use append() method.
$("div.a").append("<div class='c'>C</div>");
The HTML code now look like
<div class='a'> <div class='b'>b <div class='c'>C /<----this will be placed here. </div>
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Sign up using
0 Comment(s)