var temp=createElement('div'); temp.innerHTML=req.responseText; var tag1=temp.getElementById('tag1');