Before and After in jQuery — a practical guide to jQuery before after with clear examples you can reuse in real projects.
jQuery Tutorial Series (43/101). Prefer one article? Read the complete jQuery tutorial.
Short description
Useful for inserting notices next to fields.
before after
$('#email').after('<p class="hint">We never spam</p>');
$('#email').before('<label>Email</label>');