You could use a classes for your elements then do something like this:

                $("div.dialog-player").dialog(options);
                $("a.links-players").click(function() {
                        $("#" + this.id.replace
("link","dialog")).dialog("open");
                        return false;
                });

Hth,

Dave

On Aug 18, 8:21 am, moleculezz <[email protected]> wrote:
> Ok, so I finally figured it out.
>
> Solution:
> $(function() {
>
>         var options = {
>                 autoOpen: false,
>                 show: 'blind',
>                 hide: 'fold',
>                 width: 800,
>                 modal: true
>         };
>
>         var n = 1;
>         $("tbody tr td a.links-players").each(function(i) {
>
>                 var dlg = $('#dialog-player-' + n).dialog(options);
>                 $('#link-player-' + n).click(function() {
>                         dlg.dialog("open");
>                         return false;
>                 });
>                 n++;
>         });
>
> });
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to