I almost got it..
The problem now is, that I don't have the right selectors for the list
items.
Here's the code:
function filter(query) {
if(query != '') {
$.getJSON("$homeadress/suche.php",
{ do: "ajax", type: 'filter', what: 'all', query: query },
function(data){
for ( keyVar in data ) {
var id = '#'+data[keyVar];
$(id).css('font-size','150%');
}
}
);
}
else {
// no real search
}
}
Now, grabbing all wanted list items to highlight isn't a big thing but how
can I also grab the rest of the list items (to remove them from the list).
Is
$("li").not(id).css('font-size','50%');
the right way or is there a better solution?
Yours,
Dominik
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/