Filter class out
<html> <head> <script type="text/javascript" src="js/jquery-1.3.2.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("div").css("background", "yellow").filter(".blue").css("border-color", "red"); }); </script> <style> div { border:2px white solid;} </style> </head> <body> <body> <div class=blue>asdf</div> <div>asdf</div> <div>asdf</div> <div>asdf</div> <div>asdf</div> <div>asdf</div> </body> </html>