How can you remove the attribute id
by jQeury?
My jQuery code
jQuery('a.no_flag_question').live('click', function(){
jQuery.post('/codes/handlers/no_flag_question.php',
{ question_id: jQuery(this).attr('rel') });
$(".question_box").removeClass("yellow"); // problem here
alert ("Question is now not spam.");
});
This code should remove the following yellow -attribute in
<div id="yellow" class="question_box">
However, this does not work. The reason is very likely the function removeClass
.
I apparently use wrong function, since I want to use the ID.