Im using .net multiline control. The I use jQuery to get data from that control:
$('.detailsCommentContent').val()
in this moment when I alert that value new lines are visible.
Then I make request www.example.com?commentContent= + "$('.detailsCommentContent').val()"
And in the http request there are no newLines signs at this moment.
What should I do to keep this new Lines symbols ?
thanks for help
You’re going to have to URL-encode the value: