Today I came across this question from this Google search.
The title of the question is:
Set class with jquery?
The body contains lots of code and says:
When the panel is hidden and we press the div button(extraFilterDropDownButton) the upper left part of the page will flicker and then the panel will be animated down.
When the panel is shown and we press the div button the panel will hide('slow'), but the button will not change to the correct class even when we set it in the UpdateFilterView script?
Note that the question doesn't contain the CSS required to reproduce this.
The accepted answer from the asker is:
I ended upp with somthing like this :
$(this).live('mouseover',function(){ //something to do when mouse over });
From what I understood, probably the asker's problem was that he was dynamically generating the HTML elements, which he never mentioned anywhere in the question, and the code does not include such code segments.
This is a famous question which is likely to be viewed by many jQuery beginners.
But a mismatch between the title and accepted answer will be confusing; also the amount of text is sort of useless (wastes the time of reader when he finally realizes that it had nothing to do with the title, nor the accepted solution) - it doesn't help to arrive at the accepted answer at all.
So if I'm to edit the question, I'll change the title to something specific (local) like
Unable to set the class on hover
Indicating it is more specific to the asker rather than a general Set class with jquery question.
What is the right thing to do with such a famous question...?
Edit? Vote to Close...? something else...?