How to remove extra space inside textarea
I know its late but may help others.
use this when document indentation is required.
$('document').ready(function()
{
$('textarea').each(function(){
$(this).val($(this).val().trim());
}
);
});
Same Question : https://stackoverflow.com/a/44773825/3775083
Its because your php tag is on a newline. It is reading in the whitespace from where <textarea>
ends until php tag opens. Put this all on one line to fix.
Put this all on one line for fix this issue.Make your code like this.
<textarea style="margin-left:90px";name="history"cols="80"label="notes"rows="4"wrap="virtual"><?php echo $my_class->history;?></textarea>