I want that everytime a textbox gets changed that one function gets executed. For this I have this code:
var div = document.getElementById("tree");
var input = document.createElement('input');
input.id = 123;
input.type = "text";
div.appendChild(input);
$("input").change(function() {
alert("The text has been changed.");
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div id="tree"></div>
It even works here in the "Run code snippet".
I use a new version of Chromium for this and I open the HTML file locally. Does someone have an idea?