[Proto-Scripty] $$() for a specific root.

2010-03-29 Thread Richard Quadling
Hi, I can use ... $$('#tbl_Charges .dtl_Tyre, #tbl_Charges .dtl_Repair, #tbl_Charges .dtl_Service, #tbl_Charges .dtl_Blank').each(function(el){...}); I now want to do a further $$ on el in for each... el.$$('.rCharge, .rValue, .rDesc').each(function(el2){...}); but I don't know how to use $$

Re: [Proto-Scripty] $$() for a specific root.

2010-03-29 Thread Guillaume Lepicard
hi, use the select method of elements : $$('#tbl_Charges .dtl_Tyre, #tbl_Charges .dtl_Repair, #tbl_Charges .dtl_Service, #tbl_Charges .dtl_Blank').each(function(el){ el.select('.rCharge, .rValue, .rDesc').each(...) }); On Mon, Mar 29, 2010 at 5:23 PM, Richard Quadling