Unable to execute functions on elements loaded with AJAX (jQuery)
Posted
by Jason
on Stack Overflow
See other posts from Stack Overflow
or by Jason
Published on 2010-06-05T00:41:11Z
Indexed on
2010/06/06
6:22 UTC
Read the original article
Hit count: 166
i am using .prepend() to load data after i POST a form with .ajax().
once the new elements are added, my functions won't work on them.
if i link the js file directly in the prepended data, the functions work, but when i POST, i starts multiplying the events.
i have a feeling it has something to do with binding, but i am not able to figure out exactly how to handle it.
any ideas?
thanks!
© Stack Overflow or respective owner