Easiest way I know of isn't to pass a parameter, but to use and
destroy a data element on the object:

$('#somelement').data('event.data', {firstname: 'Tom', lastname:
'Robinson', index: 4}).click(function(){
    var data = $(this).data('event.data');
    data.firstname; // First name
    data.index; // Index value
    $(this).removeData('event.data');
});

On Jan 27, 9:06 am, mctpursuer <mctpurs...@yahoo.com> wrote:
> Hi, from the jQuery doc for dialog, there is:
>
> close   Function(Event, ui)
> Callback for the close.dialog event. The function gets passed two
> arguments in accordance with the triggerHandler interface.
>
> Can anyone give me a simple example to demonstrate how to pass a
> parameter (like index, firstname, etc.) to the event handler of the
> "close" event.
>
> Thanks.

Reply via email to