Once my eraser is clicked, I want the color to hidden or shouldn't show its dropdown elements. I tried..here is my partial code.
$('#chooseEraser').mousedown(function(e){
curTool = "eraser";
checkEraser = true;
$('#color').remove();
});
Here is the link
$('#color').css("visibility","hidden");?chooseEraserin your HTML.