codeigniter_bootstrap_form_builder
codeigniter_bootstrap_form_builder copied to clipboard
how to create <option value="1" selected="selected">Published</option>
i cant make array(/* DROP DOWN */ 'id' => 'published', 'type' => 'dropdown', 'options' => array( '1' => 'Published', '2' => 'Disabled' )
Could you provide the full code you're using?
any solution yet ! how to create placeholder in dropdown list?
@burhanahmed92 and @alikodor. This may work for you. Please check it out.
array(/* DROP DOWN */ 'id' => 'published', 'type' => 'dropdown', 'options' => array( '1' => 'Published', '2' => 'Disabled' ), 'value' => '2' ), Give 'value' of the option to be selecetd.