This is just to set the properties and their initial values.  They're
modified individually later in response to clicks and whatnot.

On Apr 7, 11:21 am, MorningZ <morni...@gmail.com> wrote:
> You're close
>
> $("table").attr({newProp1: "true", newProp2: "7"});
>
> although to be honest, your selector or mine doesn't make all that
> much sense since you would seemingly want to set unique properties on
> each table, something neither line of code does
>
> On Apr 7, 1:48 pm, Scott <william.scott.ba...@gmail.com> wrote:
>
>
>
> > I want to add a property (not a class name or id) to all the tables in
> > a web page.  I know I can use $("table") to get all the tables on the
> > page - can I also do this:
>
> >           $("table").each({newProp1:true, newProp2: 7});
>
> > so that now table.newProp1 == true and table.newProp2 == 7 ???- Hide quoted 
> > text -
>
> - Show quoted text -

Reply via email to