I want to use this nice little code: http://mimo84.github.io/bootstrap-maxlength/. I'm really new to asp.net programming and I don't know how to use this in my project. My Textboxes are already created and the MaxLength attribute is set to my desired value. Can someone tell me why it's not working.
<asp:TextBox ID="TextBox1" runat="server" MaxLength="20" onfocus="show()"></asp:TextBox> <script type="text\javascript"> function show(){ $('input[TextBox1]').maxlength(); } </script> The needed javascript files are referenced in the master file!