Solved

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

Posted on 2014-11-11
2
106 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

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…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

856 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