There is a getdetails () function for handling clicks (and sending via Ajax), but now there are four to be, and js know (get a digit in the variable) which one was clicked ...
input type="button" name="submit" id="1" value="A:..." onClick = "getdetails()" ... input type="button" name="submit" id="4" value="D:..." onClick = "getdetails()" I do not know how to combine the intruded way: element.onclick = function(){ alert(this.id); } or not to do them with buttons?