JavaScript events



Source code

<html>
<script src="https://jsuites.net/v4/jsuites.js"></script>
<link rel="stylesheet" href="https://jsuites.net/v4/jsuites.css" type="text/css" />

<div id="tags"></div>

<script>
jSuites.tags(document.getElementById('tags'), {
    value: 'apples,pears,oranges',
    // Events
    onbeforechange: function() {
        console.log(arguments);
    },
    onchange: function() {
        console.log(arguments);
    },
    onfocus: function() {
        console.log(arguments);
    },
    onblur: function() {
        console.log(arguments);
    },
    onload: function() {
        console.log(arguments);
    },
});
</script>
</html>