Re: [Rails] Re: Re: Parse selectbox value with javascript

2011-03-31 Thread Colin Law
On 31 March 2011 16:17, Tobias H. wrote: > Hey guys, > > I tried the following (in a RJS-Template), but it doesn't work: > > page[:ma].select('select#makro_ma_attributes__algorithm_id').each do > |sa| >  puts sa.getValue > end > > > => i want to loop over all selectboxes and read out the value wit

[Rails] Re: Re: Parse selectbox value with javascript

2011-03-31 Thread Tobias H.
Hey guys, I tried the following (in a RJS-Template), but it doesn't work: page[:ma].select('select#makro_ma_attributes__algorithm_id').each do |sa| puts sa.getValue end => i want to loop over all selectboxes and read out the value with RJS => "ma" is a div tag which contains many other div