frequency decoder

Unobtrusive Textarea Maxlength Demo

Give the textarea a classname of fd_max_N to initiate the functionality i.e. fd_max_20 will give the textarea a maxlength of 20 characters.

The textarea is inialised with the sentence “Some random text inserted by the server that should be maxlengthed on page load”. Of course, this should read “Some random text ins” after the script initialises.

View the page source to grab the JavaScript.