Quick synthax question
Quick synthax question
I use this to fade things outside the category I select...
- jQuery(document).ready(function($){
- $("#categories a").click(function() {
- var cat = $(this).attr('class');
- $("#wrapper div").fadeTo(50, 0.2);
- $("#wrapper div").filter('.'+cat).fadeTo(50, 1);
- return false;
- });
- $("#categories a.all").click(function() {
- $("#grid-wrapper div").fadeTo(50, 1);
- });
- });
But I would like to replace line 4 to fade only things that are not in the category. What synthax should I use ?
Many thanks for your time and help ;-)