I m new in jquery and javascript coding and Itries to written a function that.1/63/s an original Value on a textarea if the length of its Value is less than "n" nature. 它没有工作。 你们能够解释我如何这样做?
该法典:
$("textarea").focus(function() {
var text = $(this).val();
$(this).val( );
$(this).blur(function() {
if($(this).val().lenght<20)
{
$(this).val(text);
}
});
});