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

x
?
Solved

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

Posted on 2014-11-11
2
Medium Priority
?
120 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
The first step to building an amazing About page is to figure out what you want the page to say about your company. You then must grab the attention of the reader, boast a bit, tell a story and let others brag about you. With a little bit of thought…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
Suggested Courses

916 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