Solved

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

Posted on 2014-11-11
2
113 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

623 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