jquery - How to add a line break AFTER a JavaScript variable? -


i'm looping through popup window, retrieving textbox values inside said popup window, , copying values textbox in popup window. here's code

var textareas = this.$contents.find('textarea')     textboxvalue = ''; var copypopuptextbox = $('.copy-popup-text-box');  _.each(textareas, function(area, i){     var value = $(area).val();     textboxvalue += value;     copypopuptextbox += textboxvalue; } 

if looks bit confusing out of context of project, thing need worry value variable @ beginning of each loop. want line break inserted after $(area).val() has found value within textarea loop has iterated through.

i've tried putting p tags on either side of var value's content, br tags, /n strings, regexp stuff don't quite understand...

i have feeling un-extraordinary , straightforward can't see @ moment o_o

thx - gaweyne


Comments