I am currently working on a function with jQuery that searches for the class that was just clicked within xml. But the result only seems to parse me the last entered result. I keep struggeling to get this fixed so I hope someone on sitepoint is able to help me out.
The jquery looks like this:
var linkName = $(this).attr('class');
$(".description").replaceWith('<div class="description">' + description + '</div>');
and the XML tree like this:
<description> This is a excellent site to get help </description>
<description> The most used search engine nowadays </description>
In this case it would only show me the description of Google, even when I click to see the information/description about sitepoint.
Thanks in advance,