I tried this solution in this post:
http://forums.nubuilder.com/viewtopic.php?f=15&t=8387&p=12550&hilit=characters#p12550.
It does not work for me. Would you please help?
What has the html object to be? I put an input box read-only:
- Code: Select all
<input readonly type=text name=bases
size=3 value="0">
The Javascript function is on the Edit form's Javascript tab. I tried both the html-object name or object id form the zzzsys_object table.
- Code: Select all
function nuLoadEdit() {
$('#531dcb7d9bf9567').keyup(function () {
var max = 30;
var col = 'grey';
var len = $(this).val().length;
if (len >= max) {var col = 'red';}
$('#bases')
.text(len)
.css('color', col);
});
}
Tinka