source: other-projects/tipple-android/i-greenstone-server-files/greenstone/webapps/greenstone3/interfaces/default/js/jquery-ui-1.8.15/docs/removeClass.html@ 26899

Last change on this file since 26899 was 26899, checked in by davidb, 11 years ago

Tipple reborn after Chris's Summer of Code 2013

File size: 4.2 KB
Line 
1
2<ul class="UIAPIPlugin-toc">
3<li><a href="#overview">Overview</a></li>
4<li><a href="#options">Arguments</a></li>
5</ul>
6<div class="UIAPIPlugin">
7 <h1>jQuery UI removeClass</h1>
8 <div id="overview">
9 <h2 class="top-header">Overview</h2>
10 <div id="overview-main">
11 <div class="editsection" style="float:right;margin-left:5px;">[<a href="http://docs.jquery.com/action/edit/UI/Effects/removeClass?section=1" title="Edit section: removeClass( [class], [duration] )">edit</a>]</div><a name="removeClass.28_.5Bclass.5D.2C_.5Bduration.5D_.29"></a><h3>removeClass( <span class="optional">[</span>class<span class="optional">]</span>, <span class="optional">[</span>duration<span class="optional">]</span> )</h3>
12<p>Removes all or specified class from each of the set of matched elements with an optional transition between the states.</p>
13 </div>
14 <div id="overview-dependencies">
15 <h3>Dependencies</h3>
16 <ul>
17<li>Effects Core</li>
18</ul>
19 </div>
20 <div id="overview-example">
21 <h3>Example</h3>
22 <div id="overview-example" class="example">
23<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
24<p><div id="demo" class="tabs-container" rel="100">
25Removes the class 'selected' from the matched elements with a one second transition.<br />
26</p>
27<pre>$(&quot;p&quot;).<a href="http://docs.jquery.com/Events/click" title="Events/click">click</a>(function () {
28 $(this).<strong class="selflink">removeClass</strong>(&quot;selected&quot;, 1000);
29 });
30</pre>
31<p></div><div id="source" class="tabs-container">
32</p>
33<pre>&lt;!DOCTYPE html&gt;
34&lt;html&gt;
35&lt;head&gt;
36 &lt;link href=&quot;http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;/&gt;
37 &lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js&quot;&gt;&lt;/script&gt;
38 &lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js&quot;&gt;&lt;/script&gt;
39 &lt;script src=&quot;http://ui.jquery.com/latest/ui/effects.core.js&quot;&gt;&lt;/script&gt;
40&lt;style type=&quot;text/css&quot;&gt;
41 p { cursor: pointer; font-size: 1.2em; }
42 .selected { color:red; }
43&lt;/style&gt;
44 &lt;script&gt;
45 $(document).ready(function() {
46 $(&quot;p&quot;).<a href="http://docs.jquery.com/Events/click" title="Events/click">click</a>(function () {
47 $(this).<strong class="selflink">removeClass</strong>(&quot;selected&quot;, 1000);
48 });
49 });
50 &lt;/script&gt;
51&lt;/head&gt;
52&lt;body style="font-size:62.5%;"&gt;
53
54&lt;p class=&quot;selected&quot;&gt;Click me to remove 'selected' class.&lt;/p&gt;
55&lt;p class=&quot;selected&quot;&gt;Click me to remove 'selected' class.&lt;/p&gt;
56&lt;p class=&quot;selected&quot;&gt;Click me to remove 'selected' class.&lt;/p&gt;
57
58&lt;/body&gt;
59&lt;/html&gt;
60</pre>
61<p></div>
62</p><p></div>
63 </div>
64 </div>
65 <div id="options">
66 <h2 class="top-header">Arguments</h2>
67 <ul class="options-list">
68
69<li class="option" id="option-class">
70 <div class="option-header">
71 <h3 class="option-name"><a href="#option-class">class</a></h3>
72 <dl>
73 <dt class="option-type-label">Type:</dt>
74 <dd class="option-type">String</dd>
75
76 <dt class="option-optional-label">Optional</dt>
77
78 </dl>
79 </div>
80 <div class="option-description">
81 <p>CSS classes to remove from the elements.</p>
82 </div>
83</li>
84
85
86<li class="option" id="option-duration">
87 <div class="option-header">
88 <h3 class="option-name"><a href="#option-duration">duration</a></h3>
89 <dl>
90 <dt class="option-type-label">Type:</dt>
91 <dd class="option-type">String, Number</dd>
92
93 <dt class="option-optional-label">Optional</dt>
94
95 </dl>
96 </div>
97 <div class="option-description">
98 <p>A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).</p>
99 </div>
100</li>
101
102 </ul>
103 </div>
104</div>
105
106</p><!--
107Pre-expand include size: 5297 bytes
108Post-expand include size: 7164 bytes
109Template argument size: 4498 bytes
110Maximum: 2097152 bytes
111-->
112
113<!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:2607-1!1!0!!en!2 and timestamp 20110801225614 -->
Note: See TracBrowser for help on using the repository browser.