Demo
Maximum Length validation for TextBox using JavaScript and jQuery