I selected objects by class name
var inp = document.getElementsByClassName("tagsinput field is-grouped is-grouped-multiline input");
but in my file, there is only one element with that class, so I tried to console.log it
console.log(inp);
and it returned:
HTMLCollection []
length: 1
0: div.tagsinput.field.is-grouped.is-grouped-multiline.input
__proto__: HTMLCollection
then I tried to access it:
console.log(inp[0]);
but it returned:
undefined
I tried to run it in chrome devTools console and it worked just fine
Here is example code:
<script>
var inp = document.getElementsByClassName("tagsinput field is-grouped is-grouped-multiline input");
console.log(inp);
</script>
<script type="text/javascript"
src="https://cdn.jsdelivr.net/npm/bulma-tagsinput@2.0.0/dist/js/bulma-tagsinput.min.js">
</script>
<script>
bulmaTagsinput.attach();
</script>