Problems with dialog confirm function

Problems with dialog confirm function


Hello, I developed a confirm script with jQuery UI and I thought
everything was fine until I noticed it only sent one result all the
time:
    $(function(){
        $('#dialog').dialog({
        autoOpen: false,
        bgiframe: true,
        resizable: true,
        modal: true,
        buttons: {
            'Cancelar': function(){
                $(this).dialog('close');
                },
            'Continuar': function(){
                window.location= $('.confirmador').attr('href');
                }
            }
        });
        $('.confirmador').click(function(){
            $('#dialog').dialog('open');
            return false;
        });
    });
So basically, it sends the first value of href with a 'confirmador'
class.
My Question is:
How can I get it to send the value of the href attribute of
the .confirmador that is clicked and not just send the first result
all the time?
jQuery - Latest
jQuery UI - Latest
Any help would be appreciated.
Thanks,
Gustavo