What If we apply an event on multiple element? Yes in this post we are talking about to get the element on particular event. Let’s say we have more then one element and on these elements we want the click event. But now how do we detect the clicked element. In the given example, i just talking two input fields, with different name and id. And apply the click event on both elements.
There are three methods to detect the key codes of keyboard.
If we are talking about the cross-browser compatible then keyup and keydown are the best solution for this.