当我尝试将#states放在字段上时,我遇到了一个奇怪的jQuery错误:
$payment_form['totalite'] = array(
'#type' => 'radio',
'#title' => "Payer la totalité",
'#weight' => -1,
'#name' => 'commerce_payment[totalite]',
'#states' => array(
'unchecked' => array(
//':input[name="commerce_payment[partagez]"]' => array('checked' => false),
)
)
);
这给我抛出了这个错误:
jquery-2.2.4.min.js:2 Uncaught Error: Syntax error, unrecognized expression: #
有人可以帮助我吗?