Pseudo-elements in selectors
In a contextual selector, pseudo-elements are only allowed at the end of the selector:
BODY P:first-letter cfw_ color: purple
Pseudo-elements can be combined with classes in selectors:
P.initial:first-letter cfw_ color: red
event on an element.
that event on an element.
Bind an event handler to t
( ie. element
elements in the
set their css
to red .
Getting CSS values.
When using .css() as a getter function, the value of style properties for the first
element in the set of matched elements.
eg., .css('background-color') and .css('backgroundColor')
both retrieve the background-color property value of
Communicating Between Windows
Writing Content to a Window
To write content to a pop-up-window, you use the
Working between Windows
Accessing an Object within a Window
Once you specify a windo
These methods get and set CSS-related properties of elements.
(see jQuery API Category: CSS for a complete list with examples.
Get or set the CSS properties for every matched element.
Add class attributes to elements.
Pseudo-classes and pseudo-elements
In CSS1, style is normally attached to an element based on its position in the
document structure. This simple model is sufficient for a wide variety of styles,
but doesn't cover some common effects. The concept of pseud
What is jQuery?
the majority of popular browsers without you having to supply your own cod
Some common typographical effects are associated not with structural elements but
rather with typographical items as formatted on the canvas. In CSS1, two such
typographical items can be addressed through pseudo-elements: the
To select all elements that match a selector use:
The selectors are similar to CSS selectors.
/selects all divs in a document.
p') /selects all paragraphs within a div.
/selects the element with
Methods For Time Delayed Function Calls
Evaluates an expression or calls a function after a
specified number of milliseconds elapses.
Cancels a timeout that was set with the setInterval
Both get() and post() methods are supported.
Load data from the server using a HTTP GET request.
$.post( Load data from the server using a HTTP POST request.
function showResult(data, status) cfw_
alert("Data: " + data + "\nStatus: