I need to set max length for the text box in the bootstrap xeditable form.The thing is that the textbox which appears is an in build feature of the form so i could not set maxlength as an html attribute.I tried it using jquery but its not working out.( I am not able to attach the screenshot) Please help me to solve this,
You can set HTML attributes by overwriting the template:
Such as:
$('#your_id').editable({
tpl: '<textarea maxlength="250"></textarea>'
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With