$('input#title').attr('maxLength','25').keypress(limitMe); function limitMe(e) { if (e.keyCode == 8) { return true; } return this.value.length < $(this).attr("maxLength"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)