Hi,
In my web page on click on one link, pop up get open.
Pop up is a dynamic created element div with Z index.
This popup have many html elements like ul, li, a tag. In a pop up there is one link on click of it i have to stop the default behavior and redirect to a user on another page.
somehow, i am not able to bind click the event to a pop up element.
I tried the following code but it’s not working:
window.$(".ui-dialog .lia-list-tree .lia-list-tree-toggle-container").on("click","a", function(event){
event.preventDefaul();
if($(this).attr('href')!=="#"){
$(window).unbind();
window.location.href=$(this).attr('href');
}
});
ui-dialog is a class of div which created dynamically.
Please provide me the solution.