Back to the plugin

JavaScript tags events



Source code

<html>
<script src="https://bossanova.uk/jsuites/v3/jsuites.js"></script>
<link rel="stylesheet" href="https://bossanova.uk/jsuites/v3/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>