Thanks Karl So am I "storing" data wrongly - whats the easiest structure to display things, be semantically correct, and search for name/value pairs ? For me DL's seemed the natural way but perhaps I need to put the name and value into attributes of something, then display them separately ?
Karl Swedberg wrote: > Hi Andrew, > > You could do something like this (though there must be a cleaner way?): > > $('dt').filter(function() { > return $(this).text() == a; > }).next('dd').filter(function() { > return $(this).text() == b; > }) > > > --Karl > _________________ > Karl Swedberg > www.englishrules.com > www.learningjquery.com > > > > On Apr 1, 2008, at 6:23 AM, Andiih wrote: > > > > > Newbie question. I'm trying to right a selector that matches content > > in a definition list. At the moment I have > > > > $("dt:contains('" + a + "')").next("dd:contains('" + b + "')") > > > > which kind of works, but I really want equals rather than contains. > > Somehow I have managed to right 80% of a feature based navigation > > system in one evening (blimey - jQuery is powerful!), but I can't get > > this right! > > > > Andrew