CodeIgniter Forums
Get the value from form_dropdown - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: Get the value from form_dropdown (/thread-66644.html)



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):

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

and put the chosen value to this:


    
Code:
<div class="form-group">
        <label for="sprint_assigned" class=" col-md-3"><?php echo lang('sprint_assigned'); ?></label>
        <div class=" col-md-9">
            <?php
            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"),
            ));
            ?>
        </div>
    </div>

Is there any possible?
Thanks