[jQuery] Re: Add a second trigger in this function

2010-01-07 Thread Jordan
Unfortunately that didn't work either. Is there another approach that I should be taking on this? On Jan 6, 3:20 pm, Johan Borestad wrote: > I think you just forgot the last brackets on your hover method: > > $("div.tvbutton").hover(function () { >       $("div.tv").trigger('hover'); > > })  <---

[jQuery] Re: Add a second trigger in this function

2010-01-06 Thread Johan Borestad
I think you just forgot the last brackets on your hover method: $("div.tvbutton").hover(function () { $("div.tv").trigger('hover'); }) <--- Forgotten This could be optimized a little better by using id's, or at last saving a a reference to the "div.tv", so that you don't have to make searc

[jQuery] Re: Add a second trigger in this function

2010-01-06 Thread Jordan
Thanks for the insight Johan! When I implemented that though, it just added the hover cross fade to the other div as well. I am looking for a way to make the 2nd div JUST trigger the first. I was looking at the page you linked to and I am messing around with something like the following... although

[jQuery] Re: Add a second trigger in this function

2010-01-05 Thread Johan Borestad
Hi! There are a number of nice implementations you could use for this. Example the jQuery trigger. http://docs.jquery.com/Events/trigger But for now, the simpliest solution is just to add another selector like this $('div.example, div.tv').hover( . / Johan On Jan 5, 8:33 pm, Jordan wrote: >