Started

Selectors

Utilities

Animation

AJAX

CSS

Event

Manipulation

Cookie

String

Attributes

Data

Storage

Miscellaneous

$css.get

Get computed style of element.
$css.get( element, property )
  1. element [object]
    The target element.
  2. property [string/array]
    The CSS property name or the array with CSS properties.

Notes

This function works like $style.get().

Example

HTML code
<div id="box">This is a box</div>
<button onclick="start_css_get()">Get box width</button>
CSS code
#box {
	width: 200px;
	height: 60px;
	font-size: 12px;
	background: #5599bb;
	padding: 10px;
}
JavaScript code
function start_css_get()
{
	$css.set($("box"), "width", "400px");

	alert($css.get($("box"), "width"));

	// Available on 1.0.2+
	// var box_css = $css.get($("box"), ["width", "color", "background-color"]);
	// alert("width: " + box_css["width"] + " color:" + box_css["color"]);
}
Demonstration
This is a box