On Mar 26, 12:04 am, CO2 <[EMAIL PROTECTED]> wrote:
> Forgot to post the entire function:
> function toggleCells()
>         {
>             var tbl  = $('master');
>             var rows = tbl.getElementsByTagName('tr');

Table elements have a rows property that is a collection of the
table's rows, so:

               var rows = tbl.rows;

<URL: http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-6156016 >

>                 for(var i=1; i<5; i++)
>                 {
>                         for (var row=0; row<rows.length;row++) {
>                         if(rows[row].className != 'index')
>                         {
>                                 var cels = 
> rows[row].getElementsByTagName('td');

Table rows have a cells property that is a collection of all the cells
in a row:

                                  var cells = rows[row].cells;

<URL: http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-67349879 >

>                                 cels[i].toggle();

Since you want an extended cell, then perhaps:


You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 

Reply via email to