I want to set required=true
of an input in caf webmethods using javascript.
this my code that I try to set required:
if (CAF.model('#{activePageBean.clientIds['dropDowntypeFlux']}').getValue() == 'expo'){
CAF.model('#{activePageBean.clientIds['htmlInputMatricule']}').setAttribute("required", "true");
}
but it does not work.