How to debug #states mecanism - trying to get #states to work with inner fieldsets & webform
Can you add the full code for both form items?

If the element needs to be collapsed at start-up you need to add '#collapsed' => TRUE,

It also looks like there's an error in you're selector as pointed out in comments