[jQuery] Re: get the hover color of a link

2009-09-18 Thread Dale Larsen
Okay I still see the problem with that. I need to get the color without currently hovering over it. I did a test where I set an onclick event to return the color of the link. It returns the hover color when your mouse is over but not when you don't. $('.testMe a').click(function(){ alert($(thi

[jQuery] Re: get the hover color of a link

2009-09-02 Thread Dale Larsen
Well, it works. I am not sure why my first implementation wasn't working. Thank you for your help! Kind regards, Dale Larsen On Aug 25, 6:04 am, Satyakaran wrote: > I think you need to change your approach. > :hover is not set-able by jquery . > > I tried this > > > > function hover1() {

[jQuery] Re: get the hover color of a link

2009-08-25 Thread Satyakaran
I think you need to change your approach. :hover is not set-able by jquery . I tried this function hover1() { var h = $(':hover', '.test'); $.each( h, function( intIndex, intVal ){ alert($(this).css('color')) } ) } W3Schools1 W3Schools2 W3Schools3 Here on l