What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 127 Stack Exchange communities.

Regarding this question of mine: Why is my onchange function called twice when using .focus() ?

There are several answers and one provides a solution that looks valid. Now I also did some testing and came up with a quick fix myself that, as it turns out, would be implemented anyway in a later stage1.

So now I have two answers. The one that is best for my situation (my own answer) and one that I feel is a better 'overall' solution.

Which would be the best to accept?

1: My hack was to remove an onclick listener. This is sortof a hack to stop a bug where it gets called twice when it shouldn't, but as I need it to fire only once anyway, I would have removed it in any case later. If that makes sense :)

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

The purpose of marking an answer should primarily to make it a "sticky" to stay on top. This is to highlight that you (the asker) felt it most appropriate for his/her particular question/problem. So I would accept my own answer.

However, you can also edit your final solution into the answer that got you closest so that

  1. The community still get to see the "best" solution prominently
  2. The person who answered your question gets the reputation s/he deserves

Etiquette suggests putting a <hr> and ###EDIT between the answer and your new information.

share|improve this answer
    
That last seems to be a nice solution. I think the thing here is that there is a difference between the actual problem (which my answer was the solution for) and the question (which was more simplified, and which the other users answer was the best for). –  Nanne Mar 3 '11 at 8:01
    
Nanne - your answer should preferably address the question posed, not some phantom question (even if IRL) which has ghost information never revealed in SO - it wouldn't make sense to anyone else otherwise. –  RichardTheKiwi Mar 3 '11 at 8:03
    
I agree, although "phantom question" implies a little bigger difference then there actually is, so -as always- it might be less black/white –  Nanne Mar 3 '11 at 8:07
add comment

You must log in to answer this question.

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