 <p>You dont need to pass class selector <code>.</code> in <code>removeClass()</code>.so use:</p> <pre><code>$(this).removeClass('colspan') </code></pre> <p>to remove both classes <code>colspan</code> and <code>create</code>,use:</p> <pre><code>$(this).removeClass('colspan create') </code></pre>