use jquery addclass and removeclass
<p>i am making a lightbox code which requires me to use jquery <code>addClass</code> and i also require to use <code>removeClass</code> but i am not able to do that . my code is </p>

<pre><code>      var d = this.buttons;
        if (c("body").find("#lightbox-buttons").length &lt; 1) {
            this.list = c(a.template || this.template).addClass(a.position || "top").prependTo(g.utility.find("&gt; div"));
            d = {
                prev: this.list.find(".btnPrev").click(g.prev),
                next: this.list.find(".btnNext").click(g.next),
                play_fast: this.list.find(".btnFast").click(g.play_fast).addClass(g.player_fast.isActive ? "btnPlayOn" : "")
            }
</code></pre>

<p>like in this line i also need to use removeClass to remove a class from one more button. </p>

<p><code>play_fast: this.list.find(".btnFast").click(g.play_fast).addClass(g.player_fast.isActive ? "btnPlayOn" : "")</code></p>
