Solved

jQuery works in Chrome but not in IE 7

Posted on 2014-03-27
3
325 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 82

Accepted Solution

by:
leakim971 earned 200 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Form with Modals 16 44
Split in Javascript 5 31
Javascript to allow login/password authorization 4 30
How to generate a JSON response in coldfusion 4 22
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

920 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now