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
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() {
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
3 matches
Mail list logo