hi Andy,
maybe i don't understand, but, since you bind function "A" to click event,
why don't you execute "A" directly instead of trigger

Charles
2009/3/6 Yun W <yun.w...@gmail.com>

>
> I have the same issue with the click on jQuery.
>
> When using $('#elmId').trigger('click'), it doesn't work on Google
> Chrome/Safari, but it does work on IE7/IE6.  No error is thrown.
> What's the problem?
>
> Thanks.
>
> On Mar 5, 3:56 am, Andy789 <e...@abcstudio.com.au> wrote:
> > Hi All,
> >
> > I am struggling with something very simple.
> >
> > 1. onclick event for li element is binded with mootools
> >
> > 2. I can easilytriggeronclick via function with mootools like
> >
> > $('lst4').fireEvent('click'); ///works fine
> >
> > 2. I cannottriggeronclick via jquery. I am trying
> >
> > function test(){
> > //$('lst4').fireEvent('click'); ///works OK, calling mootools
> > $j('#lst4').trigger('click');  // does not work, returns no errors
> >
> > }
> >
> > I am using both mootools ans jquery. $j relates to jquery (var $j =
> > jQuery.noConflict();)
> >
> > How can Itriggeronclick for that element programmatically with
> > jquery?

Reply via email to