I feel like there must be a simple solution to this problem that I just can't seem to find. Everything related to PHP search functions and queries is functioning properly, except for the fact that the data isn't displaying correctly in the text area translated. Below you will see the code snippet.
document.getElementById("translated").innerHTML = xmlhttp.open("GET","ajax-result.php?result="+num,true);
Following the innerHTML
section, any additional content that I insert (whether it's text or HTML) appears in the right place except that currently, the above code is returning as undefined
.