I am using this dialog and I would like to add a disables button that would view the amount of characters typed in the message body. Can anyone help? Here is my code:
Thanks
(function () {
var dbid = "my dbid";
var dbidMessages = "my table id";
var apptoken = "my tokan";
$.ajaxSetup({ data: { apptoken: apptoken } });
var markup = "<textarea id=myMessage name=note rows=4 style=width:465px; height:1000px; font-size: 80px;></textarea>";
var $mydialog = $("<div>").html(markup).dialog({
title: "Enter your note here:",
modal: true,
autoOpen: true,
width: 500,
resizable: false,
buttons: {
'view here count': function () {
enter here the length of $("#myMessage").val(),
},
'Send Message': function () {
$.get(dbidMessages, {
act: "API_AddRecord",
_fid_11: rid,
_fid_6: $("#myMessage").val(),
_fid_16: type,
}).then(function (xml) {
console.dirxml(xml);
$.get() & location.reload(true);
});
},
'Cancel': function () {
$(this).dialog("close");
}
},
open: function (event, ui) {
$mydialog.html(markup);
},
close: function (event, ui) {
}
});
$mydialog.dialog("open");
// });
})();
------------------------------
EOM Develepors
------------------------------