I have developed a page with a button that, when clicked, will insert a new row with an input field and dropdown box. The dynamic values in the dropdown are retrieved from an XML file. To accomplish this, I created a getdata.jsp page which returns value1value2. I included this page in my index.html where I intend to display the dropdown. However, the problem arises when trying to use the include tag in JavaScript - it does not work as expected. To address this issue, I need to include the page in my index.jsp so that the dropdown can be generated dynamically.
I am looking to incorporate my page here
cell4.innerHTML ="<%@include file="getdata.jsp" %>";
How can I successfully achieve this? Thank you.