Thursday, April 2, 2009

a way to Limit textarea max length.

a way to Limit textarea max length.


function keyup_info_description( inLengthMaximum ) {
if ( inLengthMaximum < document.getElementById('info_description').value.length )
document.getElementById('info_description').value = document.getElementById('info_description').value.slice( 0, inLengthMaximum );
}

No comments:

Post a Comment