You can take help from jquery object and bind event handler like as follows
DOM ready event handler
$(function(){
$('input').keypress(function(event){
isNumberKey(event);
});
});
My suggestion is you assign a commin css class to each textbox you want to validate and use this css class from jquery method like as follows
$(".mytext").keypress(function(event){
isNumberKey(event);
});