Multiple Values to Trigger #states
Here's what you need:

'#states' =&gt; array(
    'visible' =&gt; array(
        ':input[name="field_star_rating"]' =&gt; array(
            array('value' =&gt; t('5')),
            array('value' =&gt; t('4'))
        ),
    ),
),