1/* comman function for all input by joshi yogesh {joshiyogesh0333@gmail.com} */
2
3$(function () {
4 $( "input" ).change(function() {
5 var max = parseInt($(this).attr('max'));
6 var min = parseInt($(this).attr('min'));
7 if ($(this).val() > max)
8 {
9 $(this).val(max);
10 }
11 else if ($(this).val() < min)
12 {
13 $(this).val(min);
14 }
15 });
16});
17