Top "Css-selectors" questions

Selectors are patterns that match against elements in a document tree.

How to select all checkboxes with jQuery?

I need help with jQuery selectors. Say I have a markup as shown below: How to get all checkboxes except #…

javascript jquery css checkbox css-selectors
Select all 'tr' except the first one

How can I select all tr elements except the first tr in a table with CSS? I tried using this …

css css-selectors
Apply style to cells of first row

It should be very simple but I can't figure it out. I have a table like this : <table class="…

html css css-selectors html-table
CSS rule to apply only if element has BOTH classes

Let's say we have this markup: <div class="abc"> ... </div> <div class="xyz"> ... </…

css css-selectors
Specify multiple attribute selectors in CSS

What is the syntax for doing something like: input[name="Sex" AND value="M"] Basically, I want to select the …

css attributes css-selectors
How to exclude particular class name in CSS selector?

I'm trying to apply background-color when a user mouse hover the element whose class name is "reMode_hover". But I …

html css css-selectors
How to create a collapsing tree table in html/css/js?

I have some data to display that is both tabular and hierarchical. I'd like to let the user be able …

javascript html css tree css-selectors
How to get CSS to select ID that begins with a string (not in Javascript)?

If the HTML has elements like this: id="product42" id="product43" ... How do I match all of those id's starting …

html css css-selectors
CSS "and" and "or"

I've got quite big trouble, because i need to anathematise from styling some input types. I had something like: .registration_…

css css-selectors conditional-operator
CSS - Syntax to select a class within an id

What is the selector syntax to select a tag within an id via the class name? For example, what do …

css css-selectors