EDITABLE CODE:
LiveDemo:jQuery - insertBefore() and insertAfter() Method
Note:insertAfter() and insertBefore() methods are similar to after() and before(), but the relationship is reversed .