Answers for "validation max 10 in input"

PHP
1

setting max input var

htaccess --> php_value max_input_vars 3000
.php     --> ini_set('max_input_vars', 3000);
Posted by: Guest on June-11-2020
1

input type number max value validation

/* comman function for all input by joshi yogesh {[email protected]} */

$(function () {
   $( "input" ).change(function() {
   var max = parseInt($(this).attr('max'));
   var min = parseInt($(this).attr('min'));
   if ($(this).val() > max)
   {
      $(this).val(max);
   }
   else if ($(this).val() < min)
   {
      $(this).val(min);
   }       
 }); 
});
Posted by: Guest on January-24-2021

Browse Popular Code Answers by Language