Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (34 sloc) 1.048 kB
<?xml version="1.0"?>
<entry type="selector" name="element" return="">
<title>Element Selector ("element")</title>
<sample>element</sample>
<signature>
<added>1.0</added>
<argument name="element" type="String">
<desc>An element to search for. Refers to the tagName of DOM nodes.</desc>
</argument>
</signature>
<desc>Selects all elements with the given tag name.</desc>
<longdesc>
<p>JavaScript's <code>getElementsByTagName()</code> function is called to return the appropriate elements when this expression is used.</p>
</longdesc>
<example>
<desc>Finds every DIV element.</desc>
<code><![CDATA[$("div").css("border","9px solid red");]]></code>
<html><![CDATA[<div>DIV1</div>
<div>DIV2</div>
<span>SPAN</span>]]></html>
<css><![CDATA[
div,span {
width: 60px;
height: 60px;
float:left;
padding: 10px;
margin: 10px;
background-color: #EEEEEE;
}
]]></css>
</example>
<category slug="selectors/basic-css-selectors"/>
<category slug="version/1.0"/>
</entry>
Jump to Line
Something went wrong with that request. Please try again.