Removed addition of ajax-search-res to dom since you can create a div with jquery without adding it to the dom and then assign to it with html the result of the ajax load thus avoiding dom manipulation for hidden data