I have the following js code which create a table if certain condition satisfied, inside the table I created a column which contains an HTML submit form , however I want to pass a parameter to another function when the button is clicked
function numberOne(event){
paramterToBePassed = somthing;
//somecode
table = innerHTML = '<tr><th>column</th></tr>';
// somecode
let x = doument.createElement('td');
somecode
x.innerHTML = <form onSubmit="return numberTwo($parameterToBePassed)"> <input type"text"> <input type="submit>
}