how to disable/hidden a list element using Javascript or jQuery
<p>Once my <code>eraser</code> is clicked, I want the <code>color</code> to hidden or shouldn't show its dropdown elements. I tried..here is my partial code.</p>

<pre><code>   $('#chooseEraser').mousedown(function(e){
        curTool = "eraser";
        checkEraser = true;
        $('#color').remove();
    });
</code></pre>

<p>Here is the <a href="http://jsfiddle.net/priyaa2002/PyXsh/" rel="nofollow">link</a></p>
