On Feb 8, 1:39 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote: > You could use the trigger method probably, it allows passing around > data: > > // attach click events > $('a').click(function(e, arg1, arg2) { > // do something withs arg1, arg2 > > }); > > // trigger click with external data > $('#some-link').trigger('click', [1234, 'john']); > > http://docs.jquery.com/Events/trigger#typedata
Hi, Klaus I have a question with your approaches, how can I pass or specify different arg1, arg2 to different <a /> elements? many thanks, lihao(XC)