Wednesday, October 29, 2008

[jQuery] callback after insertBefore or insertAfter is complete;

Hello.
I need to call function after $("#element).insertBefore("<a href=#'
title='prev'>prev</a>").

I was trying $("#element).insertBefore("<a href=#' title='prev'>prev</
a>", callback_function); but it didn't work.

What can I do to achieve this? Thank you.

No comments: