jQuery: insert elements before and after

Last updated on:

jQuery insert elements after

$(document).ready(function(){
$('#id').after('<p>test</p>')
});

jQuery insert elements before

$(document).ready(function(){
$('#id').after('<p>test</p>')
});
View Comments

Leave a Comment

Use markdown or basic HTML and be nice.