I am loading a php page inside a div that accepts a published variable to display the correct content. It works using this:
$(".mainArea").load("page.php", {'folder': 'a'}).fadeIn();
the problem is that after I dynamically load this content, I cannot get the event handlers to work. so I thought the solution would be like this:
$(".mainArea").on("load", "page.php", {'folder': 'a'}).fadeIn();
any ideas on how I can combine these two or get later ones to actually pass variables?
source share