how can i check ID of a clicked element js
- by necker
how can i check if an ID of a clicked element is lets say 'target'.
what i am trying to do is actually show and hide comment form on clicking in the text field and hide it when the user clicks out of the form. the problem is that if the user clicks Submit button the form hides and nothing is sent over. so i'll have to check if the submit buttons…