I use the word "forum" in its broad definition. A place where numbers of people discuss things.
And here is where you're confused, we don't discuss thing unless they are a) on Meta and thus are about the website and how it works or b) help clarify a question/answer.
Now first off, just by looking at your question @Shog9 posted a screenshot of (man I want to be able to see deleted question/answers) within seconds I got the feeling you didn't even debug this code. Looking at this fiddle I duplicate your alert inside your function, notice how it doesn't work. If you opened up your browser's developer console (normally F12) and reload the page we get
Uncaught SyntaxError: Unexpected token *
Remove that star and press the run button and....It works.
Now I think I can understand the downvotes to your question and infact I would have downvoted too. Why? Well the downvote button lists common reasons why to downvote
This question does not show any research effort; it is unclear or not useful
The emphasized reason is why I would have downvoted. It appears to be that there was no basic debugging which could have caught this and this counts as "research effort". Now I can't say if the other 2 lines would have worked but you could have improved your question by posting the relevant HTML because, in my view, as it stands even if you removed that *
from your code how do I know that you have elements with those IDs if you didn't even do basic debugging to catch that star
And, again, as I stated, if that's what Closed means, and only means, here, I was not aware of that.
When a question is closed the reason is posted below. Given, some of the reasons are generic like the "unclear what your asking" one but generally this can be worked out by reading some of the comments, people don't post a comment saying "show us your code" for no reason. If you still don't understand then post on Meta asking how to improve it
Finally
When you wrote your question, you saw something like this: i.sstatic.net/6T46u.png - notice how all of the questions listed are either closed, downvoted, or both? That's what you should've expected, and indeed what you got.
.
No. I DIDN'T notice, because it was popping up in the AJAX feed. I didn't actually go see the post. It was in the AJAX feed. so NO, I didn't notice before I asked the question.
You didn't notice because you was ignoring them because they were in the AJAX Feed? I don't accept this and by ignoring them you also run the risk of being downvoted for asking a plainly duplicate question, again because of a lack of research effort. These questions that appear can sometimes help you answer your own question before you even post it, has done so a couple of times for myself.
Now I can only assume your not using some obscure browser which won't do this but all those links have target="_blank"
, they open a new tab or window so your input wouldn't be lost. You could have done so yourself if you was worried they wouldn't. As what was said you should have expected that your question would get downvoted.