You can use beforeRender event of Connector to select an option:
function select_first($option){
if ($option->get_index() == 0) {
$option->select();
}
}
$options = new comboConnector($inventory);
$options->event->attach("beforeRender","select_first");
$options->render_table("hazard","id","name");
But there was a problem with selection in combo_connector.php. So, please use attached library. select() method will work with it. combo_connector.zip (1.2 KB)