how to use textinput to set max and min values code example
Example: jquery set max attribute value
$(document).ready(function() {
$("input").attr({
"max" : 10, // substitute your own
"min" : 2 // values (or variables) here
});
});