Is there a workaround for text input maxlength not working in Safari?
Try this: HTML :
<input name="mytest" type="text">
Jquery :
$('input[name="mytest"]').keypress(function() {
if (this.value.length >= 5) {
return false;
}
});