receive a responseText in ajax but without div tag
- by kawtousse
Hi everyone
I want to know if there is any other way whithout using a div tag to receive response html when sending parameter whith ajax.
I'am asking because when iam 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:
this works fine when populating ddl but its constraint are multiple for my case.
Thinks.