Hi I can access the values of these buttons
for($i = 0; $i < 10; $i++){
$newArray[] = "<input type='button' name='$i' value='($i)' class='najam' id='$i' onclick='myFunction();' />";
}
myFunction
function myFunction(){
// here to get the values of the buttons
}