How do I pass the current HTML tag as a parameter in a JS call?

  • Thread starter Thread starter alecs
  • Start date Start date
A

alecs

Guest
I have my HTML with a tag somewhere. For example:
<input type="submit" value="submit" onClick="someFunction()" />
I want to pass the current html node (the input) as a parameter in the someFunction().
Inside the someFunction() i want to be able to use the <input> which called the function.

Please help.
 
Back
Top