I'm using code from a previous question located at Create Dynamic div with unique IDs - jQuery. The question when asked used jquery 1.4.2 but I am using jquery 3.4.1.
I changed the
$("input").live("click", function() { $("span").text("Clicked ID: " + this.id);});
to
$("input").on("click", function() { $("span").text("Clicked ID: " + this.id);});
But when you click on the input field now the text is not added to the span tag.
Here is my code on Fiddle https://jsfiddle.net/shammock3522/xyjwg4em/2/