Topic: Collection Proxies - how to get property from element?


I have a page, where I have several divs with the same class rightd and different ids. I need to update them, but ids are generated dynamically.

So I do:'div.rightd').each do |item|
            item.visual_effect :highlight
            # here I need id of item to be in some string variable

this works fine, but I need to have id property of each selected div in string variable, to perform some action after highlighting. How to do it?

I have also tried:'div.rightd').pluck ('result', 'id')

and ids I want are stored in javascript variable, but I don't know how to access it from ruby.

thanks in advance