Not able to bind the click event for a dynamically created div element


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){

ui-dialog is a class of div which created dynamically.

Please provide me the solution.

A post was merged into an existing topic: Javascript/jquery event not getting bind with elements loaded using ajax