jQuery effects don't work on elements added by AJAX
Hi there,
I am having problems with slideUp/slideDown effects on elements that I add to page with a AJAX callback. slideUp/Down works on elements that are present on the page load, but doesn't work on all elements added later with AJAX.
- <div id="lib-items">
- <div class="item" id="item1">item 1</div>
- <div class="item" id="item2">item 2</div>
- <div class="item" id="item3">item 3</div>
- <div class="item" id="item4">item 4</div>
- ...
- </div>
These items can be added with ajax... Then I have checkboxes that I can filter some items by using jQuery slideUp/Down. If checkbox is clicked some items are hidden or shown. But as said abowe it doesn't affect the newly added items! How do I solve this problem?
Best regards,
Primoz