The non-deprecated values are available in iOS 5 and later. To start viewing messages, select the forum that you want to visit from the selection below. Syntax. So you can change your code to this: So you can change your code to this: var siteCopy = document.getElementById("customerfield_10200"); var site = document.getElementById("customfield_10102"); site.onchange = function() { siteCopy.value=site.options[site.selectedIndex].value; } Shortcuts. Because if the textarea's containing element has padding, your "width:100%" textarea will likely stretch outside of the parent container -- a frustrating prospect to say the least. In this post, we will see how to set or update value of textarea with JavaScript and jQuery. You may have to register before you can post: click the register link above to proceed. mawburn unlisted May 24, 2017, 1:05am #2. mawburn. So if the text field or textarea or phone, email field was left empty then default value should come up onBlur. The difference is that oninput is triggered every time the value of an element changes even while it still is in focus. how to set a value to TextArea [Answered] RSS. Textarea is the input text field where you can enter multiple line text. The value property sets or returns the contents of a text area. About; Learn; Architecture; Docs; Downloads; Community; ASP.NET Forums / General ASP.NET / Web Forms / how to set a value to TextArea. JavaScript code is written within the