I quickly answered this question with a quick hack that admittedly is not the best solution, which I completely agreed with @jfriend00 about, and upvoted his answer as well. However, the user @Nassim posted a blatantly wrong answer later which I downvoted and requested him to remove. He deleted it, then updated it to an almost exact copy of my answer which he then undeleted. He has now posted on my answer:
this code does not run , please delete
which is incorrect, and has posted on his answer:
i did update my code please remove the down vote
I've already flagged his comment on my post, and flagged his answer for the specific reason I just stated above. Is there anything else I can do, and am I correct in having flagged him for this?
EDIT
I've come to the embarrassing realization that my original answer was indeed incorrect, and that the other user's answer was not plagarism as I previously thought. My intention was not to "distribute pitchforks on Meta" but I was concerned about the user's reaction which I still believe was on some level a petty revenge. I apologize for overlooking the mistake in my answer and I apologize to @Nassim for having wrongly accused him of plagarism.
if($('#b:contains("0 items")'))
toif($('#b').text() == "0 items")
, which does the exact same thing.true
. The other one is dependent on if#b
exists and what it's text is.