Click html element other than dynamically generated elements?
I need to trigger a click on a html page other than div.but that the div is created dynamically after the page is loaded. I have tried the following code.
$('html').click(function(e) {
if(!$(e.target).hasClass('flyoutdiv') ){
}
});
It only works for an element that is not dynamically generated. "flyoutdiv" is created dynamically after page load. I need to trigger a click on the whole page except for this element. Is there any solution?
+3
source to share