I have the following code snipet:
document.getElementById('PS_FORM/SUBJECT_PROPERTY/Business_Comments').value = com_textcl + "\n" ;
document.getElementById('PS_FORM/SUBJECT_PROPERTY/Business_Comments').value = com_text;
I want each of the values to be in their own line. Is there a way to get this done??
Thanks
Assuming that element (
PS_FORM/SUBJECT_PROPERTY/Business_Comments) is atextarea, then the JS should be:If it’s a
SELECTthe code would be different (update your question).If it’s a
divor some other HTML element (rather than a FORM element) then the code would be more like: