Solved

How do I target all labels that do not have TYPE in the for name?

Posted on 2014-11-11
2
104 Views
Last Modified: 2014-11-13
Hi All,
$("label[for*='TYPE']")

Open in new window

This gets all the labels I don't want to target. All the rest of the label that I do want to select don't have a common naming.
Also could use the CSS to target the same..

Thank you,
Bill
0
Comment
Question by:bcarlis
2 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 40436448
$("label").not("[for*='TYPE']")

or :

$("label:not([for*='TYPE'])")

Also could use the CSS to target the same..
No, create a class for them :

$("label.myClass")

label.myClass {
     // rules
}
0
 
LVL 2

Author Closing Comment

by:bcarlis
ID: 40440729
Thank you!
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

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.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

911 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

25 Experts available now in Live!

Get 1:1 Help Now