Solved

jQuery works in Chrome but not in IE 7

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
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 tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
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…

744 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

10 Experts available now in Live!

Get 1:1 Help Now