My answer to this question was deleted by a moderator.
The answer was once upvoted, is specific to the question and even contains a link to a fiddle that demonstrates a working solution. Even more than that, the fiddle is eventually the same example that supports the #2 answer, just using a different technology for the solution.
I assumed that the answer was deleted by mistake and gave it again. But it was marked as spam as well.
So I'm wondering what I am doing wrong.