test
The dosomething function evoked when to click the button,how can pa
You can pass the value to the function using this.value, where this points to the button
this.value
this
And then access that value in the function
function dosomething(val){ console.log(val); }