The code below works. The .on() function in JQuery is can attach the event. However, if I replace the combo with AJAX, I have to attach again. I would like to use the delegated version of the .on() function. In this example, The commented out code does…