Set Option Value In DropDown Box Using Codeigniter Syntax
In this tutorial i am going to teach you how to set options value in dropdown box basically it is easy with html syntax to select any option but if we have to use codeigniter syntax for any input then it is little complex, for this see the following code that i found in my codeigniter project while fixing this issue.
$attributes = array(
'name' => 'InputName',
'id' => 'InputId',
'class' => 'InputClass',
'selected' => @$Array['KeyName'],
'options' => $Options