If you want to get or set a SharePoint multiline textfield in SharePoint via jQuery it is no big deal. Just use this code:
Set a SharePoint multiline textfield
$("textarea[Title=’Name of my field’]").closest("span").find("iframe[Title='Rich Text Editor']").contents().text(“<div>demo text</div>”);
Get a SharePoint multiline textfield
Var Variable1 = $("textarea[Title=’Name of my field’]").closest("span").find("iframe[Title='Rich Text Editor']").contents().text();
my input field of the form gets locked after using this to set some pre-determind text on the form . is there a way to unlock the form ?
Hi Joanne,
Never encountered that behavior before. Could you email me with more details ? Could you send me the code and the behavior? You can’t enter text anymore ?
Not working in SP2010? no error, bu also nothing happens to the multiline field when trying to set a value for it?
hmmm..what kind of multiline text field are you using? Perhaps try another variant if that is an option ?