title: Trigger a click event with own parameters (JavaScript first, alternative JQuery)
body: <p>I'm looking for a way to pass parameters to the event handler (addEventListener) when the click event of e. g. an button is triggered by code.
  My solution is to add an own attribute to the element itself, like
  <code>document.getElementById("ButtonId").MyAttribute = MyValue ;</code>        <code>document.getElementById("ButtonId").click() ;</code></p>
  
  <p>But I'm really interested in other solutions which should use first off all only JavaScript and then as an alternative JQuery. I'm aware of the JQuery event.data object, but maybe there are other solutions.</p>
  
  <p>Many thanks and greetings<br>
  ANTLRStarter</p>