Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This function The get() function (which can also be used under the alternative name pui.get()) is a shortcut for getElementValue(), trimmed. It is used to retrieve an element’s value by its id and trim the leading and trailing spaces from that value.

...

Code Block
javascript
javascript
var value = get("TextBox1");

var value2 = pui.get("TextBox1");    // pui.get() is an alternate name for get()

Example 2:

Suppose you have an element in your HTML page with the id, "header". You could set the background image of the header depending on the value of a particular output field:

...