In my page i have the the folowing. I need to sort it out using javascript.
<li class="cat2 lang1">Hello</li>
<li class="cat2 lang1">Hello</li>
<li class="cat1 lang2">Hello</li>
<li class="cat3 lang3">Hello</li>
what i tried is:
$('#movieFeatureFilter span#selGenre .subMenus li').click(function()
{
if(this.id != '')
{
$('.movie_lists ul li').hide();
$('.movie_lists ul li.cat'+this.id).show();
}
else $('.movie_lists ul li').show();
});
this works perfect. but what i need to sort the list using the combination of lang and cat.
ie if i select cat1 as category and lang2 as language then it might show the third li
i think you got wht i mean. sorry for the bad explanention. help me pls