In my project, I have a page where I need to show a modal dialog on the click of all the hyperlinks.
The popup has two buttons Images "Continue" and "GoBack". I wrote some jquery which I found on this Stackoverflow website. But there is a problem with code.
Suppose I have 5 hyperlinks in this page. When I click on the first link its opening the dialog and when I click on continue its opening the link properly.
But when I click on the second link its opening again the first link and the second link two separate windows, Which is wrong it supposed to open only second link.
When I click on the third link again its opening first,second and third links in 3 windows.
I guess I am doing a small mistake in my code. If anyone help me fixing this I really appreciate.
Thanks for your help in advance. Here is my jquery code:
var targetUrl = $(this).attr("href");
position: ["center", 240]