Sure. if you start at the tr that holds the tds, you can use down() to do this.
If you want the second td to have a certain width, you could do this:
$$('tr').each(function(elm){
elm.down('td', 2).setStyle('width:122px');
});
Walter
On Sep 23, 2012, at 12:59 PM, Евгений Шморгун wrote:
> I have to assign the different sizes to the td, and the width of them depends
> on the number's position of the tag in table.
>
> In Jquery I can write
>
> $$('td .yui-dt-liner
> div[id^=yui-gen]').eq(2).invoke("setStyle",{'width':'122px'});
> changing the argument in eq. is there analogue expression in prototype.js ?
>
> Thanks!
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Prototype & script.aculo.us" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/prototype-scriptaculous/-/rjXTGT4Eu94J.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/prototype-scriptaculous?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.