-
Notifications
You must be signed in to change notification settings - Fork 265
/
Copy pathimage-selector.xml
56 lines (56 loc) · 1.41 KB
/
image-selector.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?xml version="1.0"?>
<entry type="selector" name="image" return="">
<title>:image Selector</title>
<sample>:image</sample>
<signature>
<added>1.0</added>
</signature>
<desc>Selects all elements of type image.</desc>
<longdesc>
<p><code>:image</code> is equivalent to <code>[type="image"]</code></p>
</longdesc>
<note id="jquery-selector-extension-alt" type="additional" data-selector=":image" data-alt="[type="image"]"/>
<example>
<desc>Finds all image inputs.</desc>
<code><![CDATA[
var input = $( "input:image" ).css( {
background:"yellow",
border:"3px red solid"
} );
$( "div" )
.text( "For this type jQuery found " + input.length + "." )
.css( "color", "red" );
$( "form" ).on( "submit", function( event ) {
event.preventDefault();
} );
]]></code>
<css><![CDATA[
textarea {
height: 45px;
}
]]></css>
<html><![CDATA[
<form>
<input type="button" value="Input Button">
<input type="checkbox">
<input type="file">
<input type="hidden">
<input type="image">
<input type="password">
<input type="radio">
<input type="reset">
<input type="submit">
<input type="text">
<select>
<option>Option</option>
</select>
<textarea></textarea>
<button>Button</button>
</form>
<div></div>
]]></html>
</example>
<category slug="selectors/form-selectors"/>
<category slug="selectors/jquery-selector-extensions"/>
<category slug="version/1.0"/>
</entry>