Something like this will insert a div with class new_item before the element with class class_next
$('<div class="new_item"><\/div>').insertBefore('.class_next');
Reputation Points: 546
Solved Threads: 715
Bite my shiny metal ass!
Offline 4,137 posts
since Jul 2006