[jQuery] Re: inserting class into table element

2008-07-02 Thread Richard D. Worth
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  ...and i would like to change it into  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:
>


[jQuery] Re: inserting class into table element

2008-07-02 Thread Robert Djurasaj

Hi Richard,

I currently have  ...and i would like to change it into 

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:


[jQuery] Re: inserting class into table element

2008-07-02 Thread Robert Djurasaj

curently i have  and i would like to end up with  ...

will this do it??

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:


[jQuery] Re: inserting class into table element

2008-07-02 Thread Richard D. Worth
$("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:
>