Use CoffeeScript in Rails 3.1 (jQuery) to create a sentence from multi-select options?

This isn't a CoffeeScript issue, it's just a plain old jQuery issue. In particular this :selected isn't a valid selector in CSS or jQuery ( this is a variable in JavaScript but it's meaningless in a selector string). If you want to use a CSS selector only on children of a certain element (like this in your scenario) you can pass that element as the second parameter to $ e.g. : $(':selected', this).each.

This isn't a CoffeeScript issue, it's just a plain old jQuery issue. In particular "'this :selected'" isn't a valid selector in CSS or jQuery (this is a variable in JavaScript but it's meaningless in a selector string). If you want to use a CSS selector only on children of a certain element (like this, in your scenario) you can pass that element as the second parameter to $, e.g. : $(':selected', this).

Each ...

You rock, thanks for the help! – grumpit Oct 26 at 11:31.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions