3

I answered this question earlier today.

Although it doesn't show it here, Josh Smith's initial post was simply to use $("html") to select the HTML element.

I answered the question a minute later with the way to select the HTML element given that the class of the body element is specifically set to a certain class.

Later, Josh edited his post, essentially using the exact same method that I did when I initially posted my answer.

Another user now, whose answer was insufficient, is directing the OP to Josh's answer.

I also gave another method to do exactly what the OP asked, but still no dice. My answer is being completely ignored.

It's not that I'm upset about it, but it's not exactly fair, especially when the user whose answer is getting the attention used the same method I did after I posted my answer.

My first instinct is to leave it alone, but I'm sure we've all been through this and we all have the urge to say something. Is my first instinct the right one?

10

Leave it alone, or try to make it more "attractive" by editing it.

As to why your answer was ignored: I think it's because it doesn't look verbose enough at the first glance. It seems to contain only code. Of course, it is explained perfectly by great comments inside the code - it's a perfectly good answer. But at a quick glance, it looks like a "code only" answer, and from experience, I can say that something about them makes most people ignore them unless the code is something really, really obvious triggering an "Ah!" in the audience. It's a split second decision that I can't really explain, but slightly more verbose answers really tend to fare better.

Maybe it's because a bit of verbosity ("If your x is version y, you can do this...") resembles a real human face-to-face conversation more than a few lines of code? I don't know.

  • 3
    I was thinking the exact same thing; +1. Sometimes it may be unfair, but answers that appear to be 'code only' don't entice me to read them as much as questions with a balance of code and text. – Andrew Barber Dec 28 '11 at 21:48
  • @AndrewBarber: I would know. :P (And, funny enough, you answered that question). – Mystery Dec 28 '11 at 21:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .