Vermont Beekeepers Association
').appendTo('.startfields'); $j.each(optfields, function(i, value){ $j('
' + '
' + '' + '
' + '
' + '' + '
' + '
').appendTo('.startfields'); }); } } /*This function first get the value of Textarea. And read length of that Textarea character. then compare the value of set value.*/ function displayWordCounter() { var max = 0; // MaxChars naar Integer if (max > 0) { var getTextValue = $j('#contact-form-message').val(); // Get textarea value var getTextLength = getTextValue.length; // Get length of input textarea value if (getTextLength > max) { // Compare this length with total count getTextValue = getTextValue.substring(0, max); $j('#contact-form-message').val(getTextValue); return false; } $j('#textcount').text('(' + String(max-getTextLength) + '/' + max + ')'); } }


New In the Forums