How to get multi-line Text value - JQuery
-
08-02-2021 - |
Question
How to get and set get multi-line Text value using jquery. I have tried following code to get my Description field value. But it's not working.
$("input[Title='Description Required Field']").val()
Solution
Plain Text Multiple field:
Get
$("textarea[title='Description']").val();
Set
$("textarea[title='Description']").val("test");
OTHER TIPS
Get multi-line Text field value :
$("textarea[id^='Description']")[0].innerHTML;
Set multi-line Text field value :
$("textarea[id^='Description']")[0].innerHTML = "Your text";
I hope this helps !!!
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange