当我尝试在字段上放置 #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: #
有人能帮我吗 ?