add event.stopPropagation() to the click listener function on <a>,
that way it won't fire the click for the parent TD.

- ricardo

On Feb 11, 3:40 pm, johnallan <jral...@hotmail.com> wrote:
> jquery 1.3.1
>
> jq("#miniCalendarTable td").hover(
>         function(){ jq(this).addClass("hover") },
>         function(){ jq(this).removeClass("hover") }
> ).click(function(){
>         jq(this).children("a").trigger("click");
>
> });
>
> this is my script.. i swear I have done this before but maybe not.
>
> the hover works fine... but when the click function runs I get endless
> recursion...
>
> when i return the length of the children("a") it is 1
>
> any ideas?

Reply via email to