[Wtr-general] How to get the row number of a checked checkbox.

2007-07-17 Thread kumari
In a table there are many rows with checkboxes. But only one row contain a checkbox which is set.How can i get the number of row which has the checkbox which is set ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/list

Re: [Wtr-general] How to get the row number of a checked checkbox.

2007-07-17 Thread misdou
how about this i=0 table.each do |r| i+=1 if(r.checkbox(:name, "noName").isSet?) break end end ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] How to get the row number of a checked checkbox.

2007-07-19 Thread kumari
Thank u very much. i used the same thing already and it has worked. i think is only the possible method. Thank u for answering the query. Once again Thank u very much ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/li