Try this one: var $input = $('input') $input.keyup(function(e) { var max = 5; if ($input.val().length > max) ...
確定! 回上一頁