This _should_ work (untested): $('table.cl1.cl2').addClass('abc');
- jason On Mar 9, 11:29 am, Johannes Theile <[EMAIL PROTECTED]> wrote: > Hi, > I have a page where I cannot change the XHTML code. This page contains > two tables. The classes of the tables are as following: > > Table 1: <table class="cl1 cl2">....</table> > Table 2: <table class="cl1">....</table> > > Normally to make changes to this tables I would call up something > like: > > $("table.cl1").addClass("abc"); > $("table.cl2").addClass("xyz"); > > But in this case, if I "call up" the table with class "cl1" the other > one is also affected. Is there a way to say that I would like to > adress only the table when it its class is cl1 and cl2? > > Hopefully it becomes clear for what I'm looking. > > Many thanks! > > Johannes