Possible Duplicate:
Apply jquery function to ajax content
I read the Article about binding fancybox to a ajax loaded content via .on
Problem is: I need the plugin to be activated upon every reload of the inner DIV.
Here's my HTML:
<div id="page">
<div id="ajax_container">
content with selectboxes
</div>
</div>
Here's my JS
jQuery("#page").on("focus", function(){
jQuery("select").selectbox({
effect: "fade"
}); // selectbox
}); // on
The content now needs mouse movement to convert the selectboxes. I haven't found any other working event. Moreover, it takes quite long for the SELECTs to be converted.
How can every loaded AJAX content just show up with the plugins applied?
note: the AJAX request is made by another js-framework/ruby