Suppose to have more buttons:
<input type="button" id="number_1" value="A">
<input type="button" id="number_2" value="B">
<input type="button" id="number_n" value="N">
I want get click when the user click on them. So I would use something like this code (without Jquery):
var button=document.getElementById('[id^=number]');
button.onclick=function(){alert("HIII")};
But this code is not work. Anyone can help?