This works in 1.5.2, but doesn't on 1.6.2. The button won't get 'enabled'. I think it has to be with the .attr
How could i fix this?
function checkMessageForm() {
var message_chars = $("#form_dm_text").val().length;
console.log(message_chars);
if (message_chars > 0 && message_chars < 14001) $("#form_dm_submit").attr("disabled", "");
else
$("#form_dm_submit").attr("disabled", "disabled");
}
Thanks!