开发者

JQUERY functions not working with AJAX content

开发者 https://www.devze.com 2023-02-28 01:29 出处:网络
I have 3 drop down selectors usin开发者_C百科g AJAX (first is populated, after selection the second gets populated and so on..), after selection a script is called to fill a <p> tag with a table

I have 3 drop down selectors usin开发者_C百科g AJAX (first is populated, after selection the second gets populated and so on..), after selection a script is called to fill a <p> tag with a table that includes pictures, the problem is that I cannot use jquery plugins on those pictures (lightroom, tooltip). I can use these features if I get pictures witought AJAX. I also tryed to move the ajax script in the root (so it can recognize functions in the js files)...

JQUERY functions not working with AJAX content

Any ideas would be appreciated :|


I'd suggest using .delegate() over .live(), the latter has a lot of disadvantages and its use is not really encouraged nowadays. Since you are a jQuery-newbie (as you stated), if you familiarize yourself with .delegate() you will never miss .live().

Why You Should Never Use jQuery Live

0

精彩评论

暂无评论...
验证码 换一张
取 消