CodeIgniter Forums

Full Version: Get the value from form_dropdown
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?