. , , , / . , , fromCharCode , . ,
HTML:
<input id="inputBox" type="text" />
JQuery:
$("#inputBox").on("keypress", function(e){
var currentValue = String.fromCharCode(e.which);
var finalValue = $(this).val() + currentValue;
if(finalValue > 100){
e.preventDefault();
}
});
jsFiddle