What am i missing to keep the last option selected when submitting a form? After submit, the selected value does not stay populated
Select::create(array(
"name"=>"plant_region",
"dataStore"=>$report->dataStore("PlantRegions"),
"defaultOption"=>array("--"=>""),
"dataBind"=>"plant_region",
"attributes"=>array(
"class"=>"form-control",
),
"clientEvents"=>array(
"change"=>"function(){
console.log($(this).val());
}",
)
));