Hi everyone. I want to know if there is any other way without using a div tag to receive response html when sending parameter whith ajax. I'am asking because when I am building the select in other servlet and returning the result to jsp it receive the responsehtml in a div tag when we use the famous:
x = xhr.responseText;
document.getElementById('param').innerHTML = x;
with param
is the id of div tag.
Note: <div id="param" style='display:inline'>
this works fine when populating ddl but its constraint are multiple for my case.
Thinks.