Wednesday, October 29, 2008

[jQuery] Re: callback after insertBefore or insertAfter is complete;

Thank You a lot.

On Oct 29, 3:55 pm, "Richard D. Worth" <rdwo...@gmail.com> wrote:
> Regular DOM manipulation events (that is, not .load(), which uses Ajax) are
> synchronous, so you can simply call your function on the next line.
>
> - Richard
>
> On Wed, Oct 29, 2008 at 9:22 AM, gryzzly <mrejz...@gmail.com> wrote:
>
> > 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: