Oh... I need to add an 'if' statement to it (at least that's how my mind works after years with PHP!), something like this?
I don't think you'll need that, if I'm understanding your use case correctly.
When this.value is evaluated, it automatically uses the selected option to determine the value. The idea is that if the first option is selected, this.value == 'no' will return true, and and so set disabled=true for the desired elements. Then if either of the "yes" values is selected, this.value == 'no' will return false, and so disabled will be set to false, thus enabling the desired elements.
It's kind of a shortcut to use a conditional as the second argument to the attr method, that saves you a few lines of code.
-- Josh