I am working in codeigniter and using dropdown to populate values in select2 jquery dropdown, but the issue is i cannot retain the selected value after form submit, after using det_value it shows id not text. Here is my code:
$name = array('id'=>'name','name'=>'name','class'=>' form-control');
echo form_dropdown($tutor_name,set_value('name'));