I have a simple text area in a form like this:
I know its late but may help others.
use this in when document indentation is required.
$('document').ready(function() { $('textarea').each(function(){ $(this).val($(this).val().trim()); } ); });
same question