I've seen tutorials on detecting changes on the values of input id, but is there a quick snippet or code that would update the input id name if it were to be changed? I'm sort of new in this and I did some research and found this code
setInterval(function() { ObserveInputValue($('#input_id').val()); }, 100);
Is it possible to detect if the name of an input id changes then automatically update and change the variable?
Example $('#myname').val('name').change();
If the input id changes to nameofperson, what code would automatically detect that and change the input id name to nameofperson?