I asked this question before, but I don\'t think I explained properly for what I am trying to accomplish.
There are multiple links on my website and I want to open
You can't have multiple elements with the same Id.
Change your links to to class="test"
instead and therefore your click event to $('.test').click()
.
Also if you still have problems, and I remember I had some similar issues because how JQUery Dialog behaves itself with the DOM. It will literally rip your #somediv out of content and append it to the bottom of a page to display that dialog. I solved my dynamic dialog loading issues with wrapping it in another div.