Module-documentation

version 1.0.0
module: event-dom
maintanance: Marco Asbreuk
home
all modules

valuechange event

The valuechange-event is a sophisticated event. It will be emitted on every type of intermediate changes of the element. Even when you paste content by rightclicking the mouse.

Enter some text or paste it: see that an valuechange-event occurs:

Code-example:

<body>
    <div id="input-container">
        <input id="example" />
    </div>
    <div id="container"></div>
</body>
<script src="itsabuild-min.js"></script>
<script>
    var container = document.getElement('#container');

    var showMsg = function(e) {
        container.setText(e.value);
    };

    ITSA.Event.after('valuechange', showMsg, '#example');
</script>
API Docs