wendel
wendel

Reputation: 53

Reapply jquery functions

What is the best way to reapply functions in jquery? I do not want to use the live() function. An AJAX-request adds new items to my page and I want to make all of my jquery functions work on them.

How can I realign that jquery functions best, beside of live()?

Thanks!

Upvotes: 2

Views: 656

Answers (2)

Josh Mein
Josh Mein

Reputation: 28645

If you really dont want to use live(), you can just run the jquery again after the items are added to the page in the ajax request.

Upvotes: 2

Nicola Peluchetti
Nicola Peluchetti

Reputation: 76880

You can use delegate(). look here for documentation

Upvotes: 0

Related Questions