This function retrieves an element value by id. The value can then be passed to a JavaScript function, AJAX request, or some other process. Leading and trailing spaces are not trimmed with this function.
Parameters:
- id or DOM reference to element – identifies the element to retrieve the value from
Example:
var value = getElementValue("TextBox1");