I use $(\"#container\").on(\"click\", contentEffects); to make some jquery code work again after ajax call. However, I hope the .on() function can be e
$(\"#container\").on(\"click\", contentEffects);
.on()
use this code to execute .on function after page load.
$(document).ready(function() { $("#container").on("click", function() { //Your Code }); });