I am making an AJAX call that returns multiple records from my db each enclosed by <pre
> tags like so:
<div id = "ajaxdiv">
<pre id = "1"> record 1 </pre>
<pre id = "2"> record 2 </pre>
etc. etc.
</div>
I want to be able to selectively hide one or more of the records returned so only the ones most pertinent to the original query remain. The number of records returned can vary. Javascript inserted as DOM text will not execute so I am a bit of a loss how to accomplish this using JQuery hide() etc.
Any help would be appreciated.