IT. Expert System.

JQUERY

CSS Manipulation


CSS Manipulation

jQuery selectors allow selection and manipulation of HTML elements as a group or as a single element.

Element Selectors

jQuery uses CSS selectors to select HTML elements.

Selector / Description
*
Selects all elements


Example:
$("*")
element
Selects all elements with the given tag name


Example:
$("p")
.class
Selects all elements with the given class


Example:
$(".intro")
#id
Selects a single element with the given id attribute


Example:
$("#demo")

Attribute Selectors

jQuery uses XPath expressions to select elements with given attributes.

Selector / Description
[attribute]
Selects elements that have the specified attribute, with any value


Example:
$("[href]")
[attribute=value]
Selects elements that have the specified attribute with a value exactly equal to a certain value


Example:
$("[href='#']")
[attribute!=value]
Select elements that either don't have the specified attribute, or do have the specified attribute but not with a certain value


Example:
$("[href!='#']")
[attribute$=value]
Selects elements that have the specified attribute with a value ending exactly with a given string. The comparison is case sensitive


Example:
$("[href$='.jpg']")

CSS Selectors

jQuery CSS selectors can be used to change CSS properties for HTML elements.

he following example changes the background-color of all p elements to yellow:

$("p").css("background-color","yellow");


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 62 / 158781101. Delta: 0.00320 с