#states not working properly in IE 9 I am using #states form API to do the show hide animation of one element based on the values of another form element.like follows,

$price['#states'] = array(
    'visible' =&gt; array(
        ':input[id="edit-field-paid-event-und"]' =&gt; array('value' =&gt; 1),
    ),
);


It's working fine in all the browsers except in Internet explorer 9 and 10. Any solution for this.
I found the answer from this Link. So Internet Explorers never accepts element value as integer. I changed my code as follows it's working for me,

$price['#states'] = array(
  'visible' =&gt; array(
    ':input[id="edit-field-paid-event-und"]' =&gt; array('value' =&gt; '1'),
  ),
);