Knockout (web framework)

The underlying principles are therefore: The latter leverages the native event management features of the JavaScript language.

These features streamline and simplify the specification of complex relationships between view components, which in turn make the display more responsive and the user experience richer.

When either text box is edited, the "full name" display is automatically updated, with no explicit event handling.

The init function is called when the binding has been applied to an element, perfect for onetime initialization.

Here’s a simple example of a custom binding handler that applies a jQuery UI datepicker to an input element: