Thank you in advance for any help! :)
I am using javascript to add fields to a document but the element monitor only works on hard coded fields.
For example in the code below, lozfield is monitored for change which works fine initially. However, if you click the populate button and repopulate with exactly the same input field, the watch no longer works. In debug, the field has EVENT next to it... until it is repopulated at which point the EVENT disappears. (apologies for my probably incorrect terminology!).
$("#lozfield").change(function() {
alert("lozfield-CHANGED");
});
$("#populate").click(function() {
document.getElementById("lozcontainer").innerHTML = '<input type="text" id="lozfield" value="ABC">';
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div id="lozcontainer">
<input type="text" id="lozfield" value="ABC">
</div>
<input id="populate" type="button" value="POPULATE">