topical media & game development

talk show tell print

lib-jquery-style-custom-development-bundle-docs-removeClass.htm / htm



  
  <ul class="UIAPIPlugin-toc">
  <li><a href="#overview">Overview</a></li>
  <li><a href="#options">Arguments</a></li>
  </ul>
  <div class="UIAPIPlugin">
    <h1>jQuery UI removeClass</h1>
    <div id="overview">
      <h2 class="top-header">Overview</h2>
      <div id="overview-main">
          <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>, <span class="optional">[</span>duration<span class="optional">]</span> )</h3>
  <p>Removes all or specified class from each of the set of matched elements with an optional transition between the states.</p>
      </div>
      <div id="overview-dependencies">
          <h3>Dependencies</h3>
          <ul>
  <li>Effects Core</li>
  </ul>
      </div>
      <div id="overview-example">
          <h3>Example</h3>
          <div id="overview-example" class="example">
  <ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
  <p><div id="demo" class="tabs-container" rel="100">
  Removes the class 'selected' from the matched elements with a one second transition.<br />
  </p>
  <pre>$(&quot;p&quot;).<a href="http://docs.jquery.com/Events/click" title="Events/click">click</a>(function () {
        this.<strong class="selflink">removeClass</strong>(&quot;selected&quot;, 1000);
      });
  </pre>
  <p></div><div id="source" class="tabs-container">
  </p>
  <pre>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
    &lt;link type=&quot;text/css&quot; href=&quot;http://jqueryui.com/latest/themes/base/ui.all.css" rel=&quot;stylesheet&quot; /&gt;
    &lt;script type=&quot;text/javascript&quot; src=&quot;http://jqueryui.com/latest/jquery-1.3.2.js"></script>
    &lt;script src=&quot;http://ui.jquery.com/latest/ui/effects.core.js"></script>
  <style type=&quot;text/css&quot;&gt;
    p { cursor: pointer; font-size: 1.2em; }
    .selected { color:red; }
  &lt;/style&gt;
    &lt;script type="text/javascript"&gt;
    document.ready(function(){
      $(&quot;p&quot;).<a href="http://docs.jquery.com/Events/click" title="Events/click">click</a>(function () {
        this.<strong class="selflink">removeClass</strong>(&quot;selected&quot;, 1000);
      });
    });
    &lt;/script&gt;
  &lt;/head&gt;
  &lt;body style="font-size:62.5%;"&gt;
    
  &lt;p class=&quot;selected&quot;&gt;Click me to remove 'selected' class.&lt;/p&gt;
  &lt;p class=&quot;selected&quot;&gt;Click me to remove 'selected' class.&lt;/p&gt;
  &lt;p class=&quot;selected&quot;&gt;Click me to remove 'selected' class.&lt;/p&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </pre>
  <p></div>
  </p><p></div>
      </div>
    </div>
    <div id="options">
      <h2 class="top-header">Arguments</h2>
      <ul class="options-list">
        
  <li class="option" id="option-class">
    <div class="option-header">
      <h3 class="option-name"><a href="#option-class">class</a></h3>
      <dl>
        <dt class="option-type-label">Type:</dt>
          <dd class="option-type">String</dd>
        
        <dt class="option-optional-label">Optional</dt>
        
      </dl>
    </div>
    <div class="option-description">
      <p>CSS classes to remove from the elements.</p>
    </div>
  </li>
  
  <li class="option" id="option-duration">
    <div class="option-header">
      <h3 class="option-name"><a href="#option-duration">duration</a></h3>
      <dl>
        <dt class="option-type-label">Type:</dt>
          <dd class="option-type">String, Number</dd>
        
        <dt class="option-optional-label">Optional</dt>
        
      </dl>
    </div>
    <div class="option-description">
      <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>
    </div>
  </li>
  
      </ul>
    </div>
  </div>
  
  </p><!-- 
  Pre-expand include size: 5154 bytes
  Post-expand include size: 7134 bytes
  Template argument size: 4488 bytes
  Maximum: 2097152 bytes
  -->
  
  <!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:2607-1!1!0!!en!2 and timestamp 20090319015957 -->
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.