0

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()
1

Plain Text Multiple field:

Get

$("textarea[title='Description']").val();

Set

$("textarea[title='Description']").val("test");
1

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 !!!

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.