Re: [Proto-Scripty] Prototype's selector as well as "eq" in Jquery

2012-09-23 Thread Jason Westbrook
You could probably also use $$('td .yui-dt-liner div[id^=yui-gen]')[2].setStyle('width:122px'); for individual calls - but if you are going through multiple elements I would use each as Walter described Jason Westbrook | T: 313-799-3770 | jwestbr...@gmail.com On Sun, Sep 23, 2012 at 3:19 PM,

Re: [Proto-Scripty] Prototype's selector as well as "eq" in Jquery

2012-09-23 Thread Walter Lee Davis
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,

[Proto-Scripty] Prototype's selector as well as "eq" in Jquery

2012-09-23 Thread Евгений Шморгун
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 p