* I am working on a live search script and i have something like this
<li class="special"><h2>Element received from search</h2></li>
<li class="special"><h2>Normal element not from search</h2></li>
* where the second element is always on the page.and i want to expand and colapse some content with jquery
$('.special')
.each(function(){
$(this).hover(function(){
$(this).find('h2').addClass('collapse');
}, function(){
$(this).find('h2').removeClass('collapse');
})
* but for some reason although they have the same class the elements from the search do not change why is that ?