title: Add returns from a loop into a string in jQuery
body: <p>Here I am appending a multiline string to an element in jQuery, what I want to do is add a string return from each value in the for loop.</p>
  
  <pre><code>$("songs-table-tr").append('tr id="songs-table-tr'+count+'" style="display: none"&gt;\
                                      &lt;td&gt;\
                                      &lt;/td&gt;'+$("#song-list li input").each(function() {
                                          text = $(this).val()   
                                      })+'\
                                      &lt;/td&gt;')
  $(".todolist-modal").modal("toggle")
  </code></pre>
  
  <p>If anyone knows how to do this, it would be a great help. Please tell me if the question makes sense or if I need to reword it.</p>