2

I have a Plain Text multi-line value on my SP2013 list. Text is entered into the box with Line Feed characters.

When I use the jquery command in an attached JS program

var Falerts = $("input[id$='FormAlert']").val();
alert(Falerts);

no LF characters are displayed are in the alert, purely just text.

How can I extract the full text, complete with any CR / LF characters?

Thanks!

0

Persistence is golden.

var FAlerts = $("textarea[Title='FormAlert']").html();

did the trick.

0

Or

 var FAlerts = document.querySelector("textarea[Title='FormAlert']").innerHTML

for those who want to do it native JS without the hassle of loading jQuery

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.