Solved

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

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
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.
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 …
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…

747 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

11 Experts available now in Live!

Get 1:1 Help Now