Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

jQuery works in Chrome but not in IE 7

Posted on 2014-03-27
3
Medium Priority
?
338 Views
Last Modified: 2014-03-27
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
0
Comment
Question by:bcarlis
3 Comments
 
LVL 83

Accepted Solution

by:
leakim971 earned 800 total points
ID: 39959718
Why << :link >> additionaly to << a >>?
Check this test page on IE7 : http://jsfiddle.net/M8LaL/2/

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

Open in new window

0
 
LVL 13

Expert Comment

by:Carl Bohman
ID: 39959735
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/
0
 
LVL 2

Author Closing Comment

by:bcarlis
ID: 39959981
That did it!
Thank you!
jQuery 1.8.22
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
Suggested Courses

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question