title: Get value from textarea in bootbox
body: <p>I have a bootbox.dialog with a textarea. I want to save the value of the textarea with rowbrakes in the same place as it was written to the database. So I need to create a string with <code>/n</code> or <code>&lt;br&gt;</code>. </p>
  
  <p>Right now is my value undefined.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>$('#btnComment').click(function () {        
      var comment = $("#lblComment1").html();
      popup.dialog({
          title: translator.get('EditComment'),
  
          message: "&lt;textarea cols='60' rows='6' name='editComment'&gt;" + comment + "&lt;/textarea&gt;",
  
          buttons: {
              confirm: {
                  label: translator.get('EditComment'),
                  className: "btn-success",
  
                  callback: function (result) {
                      if (result === null) {
  
                      } else {
                          $("#editComment").val(result);
                          $("#lblComment1").html(result);                            
  
                          var ajaxData = {
                              Type: "Comment",
                              OrderId: $("#lblOrder").html(),
                              newValue: $("#editComment").val(),
                              MiddocID: $("#hidMiddocID").val()
                          }
  
                          $.ajax({
                              type: 'post',
                              url: configuration.baseUrl + '/api/OrdersPostback', //
                              dataType: "json",
                              data: JSON.stringify(ajaxData),
                              contentType: "application/json; charset=utf-8"
                          }).then(function (bResult) {
                              if (bResult) {
                                  $("#editComment").val(result);
                                  $("#lblComment1").html(result);
                              }
                          });
                          //$("#hidBtnComment").click();
                      }
                  }
              },
  
              cancel: {
                  label: translator.get('Cancel'),
                  className: "btn-default"
              }
          },
  
  
      })
  
  });
  </code></pre>
  
  <p>Any suggestions of what I can do?</p>