|
JQuery - append
JQuery - append
.append() - метод добавляет содержимое в конец элемента
1 2 3 4 5 6 7
|
<?php
<div class="el">Super</div>
$('.el').append("<p>Test</p>");
?>
|
1 2 3 4 5 6 7 8 9
| append: function() {
return domManip( this, arguments, function( elem ) {
if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 )
{
var target = manipulationTarget( this, elem );
target.appendChild( elem );
}
});
}, |
|