After reading this group history and other google sources I came into
the conclusion that it would not be possible to simulate the click by
trigger("click").
Anyway, here is the code that is working fine for me. Maybe useful for
someone.
Thanks for help.
Brgs
Norbert
$("#menu_ma a")
.clic
Hi Matthew,
Thank you for answering again.
I am using jQuery 1.3.2
I am afraid that $("#fake_href").trigger('click').stopPropagation();
is not the right solution here.
Since #fake_href is outside the ... I do not need to stop
propagating here, but ...
Your idea was interesting and I checked
Hi Norbert,
If you read up on the jQuery click event http://docs.jquery.com/Events/click
you will see that it binds a click listener to whatever element you
apply it to so in your case:
$("#fake_href").click(); <- this is 'listening' for a user to click
on some element with id = #fake_href, so
I am even more confused right now.
I decided to create fake outside to avoid the propagation
issue.
$(document).ready(function(){
$("#menu_ma a")
.click(function(e,a){
$(this).closest("li.ui-selectee").addClass("ui-selected").siblings
().removeClass("ui-select
Thank you for answering.
>Looks like you could listen for a click on the 'li' then trigger a
>click on the child 'a' tag without worrying about extracting the
>target or href.
I know that. I do that. I am extracting target due to workaround.
If we skip that, when I catch the click in and then tr
Sorry I can't be more specific Norbert, I'm at work and have limited
time.
Check out the "Trigger" event for jQuery: http://docs.jquery.com/Events/trigger
Looks like you could listen for a click on the 'li' then trigger a
click on the child 'a' tag without worrying about extracting the
target or
6 matches
Mail list logo