jQuery: color change doesn't work with Chrome and Safari
Posted
by Patrick
on Stack Overflow
See other posts from Stack Overflow
or by Patrick
Published on 2010-04-28T10:19:58Z
Indexed on
2010/04/28
10:23 UTC
Read the original article
Hit count: 307
hi,
could you explain me why the following code doesn't work in Chrome and Safari, but only in Firefox ?
if ($(this).css("color") == "Fuchsia"){ $(this).css("color","#000000"); }
This is the link:
http://www.sanstitre.ch/drupal/portfolio?tid[0]=38
If you scroll down and up you'll see "Eternal Tour" becoming purple and black again, because it is not anymore selected. (with FIrefox)
With Chrome and Safari it remains black.
© Stack Overflow or respective owner