Link to home
Start Free TrialLog in
Avatar of BILL Carlisle
BILL CarlisleFlag for United States of America

asked on

jQuery works in Chrome but not in IE 7

Hi,
This jQuery works in Chrome but not in IE 7 is there a reason why?
Is there a way to try my command from console as in Chrome?

$('a:link', $("label[for='P11_ORDER_NUMBER']")).css({"color":"red"});

$('a:link', $("label[for='P11_ORDER_NUMBER']")).css("color","red");

Thank you, Bill
ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I'm not sure which version of jQuery you are using, but if you are trying to use jQuery 2 with IE 7, it is not guaranteed to work according to this page:

http://jquery.com/browser-support/
Avatar of BILL Carlisle

ASKER

That did it!
Thank you!
jQuery 1.8.22