How to save the value of textarea to JSON?
I have a textarea; I need to save value of that text area into a js object.
Its working fine if there is no 'enter'(line break) pressed. How to save it and and retrieve it as such with linebreaks.
Save using
dataObject[0]["Category"][0]["Category"] = $('textarea').val();