in that case you want $("table").addclass("tablesorter");
though that will add the tablesorter class to all tables. If you want to add it only to one table, best to have an id on the table, then do: $("#myTableId").addClass("tablesorter"); - Richard On Wed, Jul 2, 2008 at 1:26 PM, Robert Djurasaj <[EMAIL PROTECTED]> wrote: > > Hi Richard, > > I currently have <table> ...and i would like to change it into <table > class="tablesorter"> > > will this do the trick? > > robert > > On Jul 2, 1:13 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote: > > $("table.tablesorter").addClass("newclass"); > > > > - Richard > > > > On Wed, Jul 2, 2008 at 12:41 PM, Robert Djurasaj < > [EMAIL PROTECTED]> > > wrote: > > > > > > > > > Does anyone know how can i add a class into existing table element > > > using jQuery?? > > > > > ex: <table class="tablesorter"> >