I just went through a question on Stack Overflow, in which the OP just said that
he wants to get the click event of textboxes
that are in a div. As everybody knows, in jQuery you can traverse multiple ways to reach an element.
But one person's answer is not an answer of the current question; instead he suggested using an id and using that id in a selector.
I just find that approach a bit wrong, instead of giving an answer to the question, he is asking the OP to change his approach. I commented there about this.
Finally he advised me to post this question and ask the community if his approach was right, changing the question and answering according to his situation, instead of what the OP asked for?
I understand this question may be a bit off topic on Meta, but I don't understand where I can get a reply to this question.
As everybody knows
. I didn't