Andy,
I still don't know why the trigger click doesn't work. For me, it
doesn't work on Firefox and I wrote a greasemonkey script to do the
clicking via this code:
var evt = document.createEvent("HTMLEvents");
evt.initEvent("click", true, true);
Thank you guys! I did not know that jquery can handle only its 'own'
bound events. I will have to use mootools as it works fine. I just
wanted to avoid mixing jquery and mootools in the same function.
> I am struggling with something very simple.
>
> 1. onclick event for li element is binded with mootools
>
> 2. I can easily trigger onclick via function with mootools like
>
> $('lst4').fireEvent('click'); ///works fine
>
> 2. I cannot trigger onclick via jquery. I am trying
>
> function test(){
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
>
> I have the same issue with the click on jQuery.
>
> When using $('#elmId').trigger('click'), it doesn't work on Google
> Chrome/Saf
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 wrote:
> Hi All,
>
> I am struggling with something very si
5 matches
Mail list logo