Вопрос

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()
Это было полезно?

Решение

Plain Text Multiple field:

Get

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

Set

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

Другие советы

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с sharepoint.stackexchange
scroll top