I am trying to use AJAX to populate some select boxes that were auto-generated using CakePHP’s formHelper.
How do I add the onChange event listener to the select box?
I am trying to use AJAX to populate some select boxes that were auto-generated
Share
I solved it by dynamically adding the event listener using the
addEventListener()function inside awindow.onload()function.