spField.onValueUpdated Event

Occurs when input value of spField instance is updated

Namespace : jSPoint
Class : spField
Released since : v0.1.0 (History)

  • Syntax
.onValueUpdated(action)

  • Parameters
action
Type : function()
Actions to perform when input value updated

  • Example
// if input field value is less than 100, show a warning
myField.onValueUpdated(function() {
  if (myField.getFieldValue() < 100) {
    alert("Value less than 100");
  }
});

Last edited Jan 27, 2011 at 9:13 PM by GurYN, version 2

Comments

No comments yet.