CodeIgniter Forums
Get the value from form_dropdown - Printable Version

+- CodeIgniter Forums (
+-- Forum: Using CodeIgniter (
+--- Forum: General Help (
+--- Thread: Get the value from form_dropdown (/showthread.php?tid=66644)

Get the value from form_dropdown - Fraps900 - 11-15-2016

guys, please help.

I would like to get the value of  form_dropdown (when I choose):

div class="form-group">
       <label for="sprint_id" class=" col-md-3"><?php echo lang('sprint'); ?></label>
        <div class="col-md-9">
            echo form_dropdown("sprint_id", $sprint_dropdown, array($model_info->sprint_id), "class='select2'");

and put the chosen value to this:

<div class="form-group">
        <label for="sprint_assigned" class=" col-md-3"><?php echo lang('sprint_assigned'); ?></label>
        <div class=" col-md-9">
            echo form_input(array(
                "id" => "sprint_assigned",
                "name" => "sprint_assigned",
                "value" => $model_info->sprint_assigned,
                "class" => "form-control",
                "placeholder" => lang('sprint_assigned'),
                "autofocus" => true,
                "data-rule-required" => true,
                "data-msg-required" => lang("field_required"),

Is there any possible?