JSFiddle - React, Tailwind, and code Playground
HTML
<button id="submitBtn"> Submit Button </button>
<a id="doclick" href="#" onclick="return false;">Do click</a>
JavaScript
$("#doclick").on('click', function () {
$("#submitBtn").data("params", {
one: "Parameter 1",
two: "Parameter 2"
}).click();
});
$("#submitBtn").on('click', function () {
// Parameter 1
alert( $(this).data("params").one );
// Parameter 2
alert( $(this).data("params").two );
// Do other stuff
});