我想required=true
使用 javascript 在 caf webmethods 中设置一个输入。
这是我尝试设置的代码:
if (CAF.model('#{activePageBean.clientIds['dropDowntypeFlux']}').getValue() == 'expo'){
CAF.model('#{activePageBean.clientIds['htmlInputMatricule']}').setAttribute("required", "true");
}
但它不起作用。