i'm building an autosuggest texbex with ajax, i wanna extract data(<div>data</div>) resulting from ajax response and using it in javascript.that why i need not the HTML page but the "balise" content in javascript.
here some code:

//ajax
if (xmlhttp.status == 200) {//returned by the server indicating status

document.getElementById("x").innerHTML =(xmlhttp.responseText);
// here i wanna read the content of html balise
}