How to remove a class that has been appended to a div id? Earlier I appended a star to a label,when a checkbox is click.
$("<span class='req'><em> * </em></span>").appendTo("#displayPanel #labelstr"+div_id);
Now,if the same checkbox is clicked again I want to remove that star. I know there is a remove() option, but what is the proper code for it? Please guide me.