<html> <head> <script type="text/javascript" src="js/jquery-1.3.2.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("div,span,p.myClass").css("border","3px solid red"); }); </script> </head> <body> <div>div</div> <p class="myClass">p</p> <p class="notMe">p</p> <span>span</span> </body> </html>