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