How can I set the max length of a single line of text? I am looking maybe with some jquery, but I can't set a custom id on the field either
How can I set the max length of a single line of text? I am looking maybe with some jquery, but I can't set a custom id on the field either
Hopefully there is a better way to identify the input field but this is what I have in my custom programming plugin:
var $j = jQuery.noConflict();
$j(document).ready(function(){
// max length for tag fields<br />
$j("#input_1_9").attr({maxlength:4});
$j("#input_1_20").attr({maxlength:4});
$j("#input_1_22").attr({maxlength:4});
});
There isn't a way to set a maxlength right now but you can set a custom class per field and should just have to declare the attributes for the class once in the jQuery snippet