<div class="form-group col-sm-4" id="organization_list">
    <level for="organization_name">Organization</level>
    <select data-errormessage-value-missing="Person Organization is required!"
            class="fvalidate[required] form-control"
            name="selected_organization_id" 
            id="selected_organization_id"
            onchange="calculateTotalResourcePerson(this.value);">
        <option value="">--Select Organization--</option>
        <?php foreach ($organization as $v_organization) { ?>
            <option value = "<?php echo $v_organization->organization_id; ?>"><?php echo $v_organization->organization_name; ?></option>
        <?php } ?>
    </select>
</div>

<div class="form-group col-sm-4">
    <level>Organization Code</level>
    <input data-errormessage-value-missing="Person Organization Code is required!"
           class="fvalidate[required] form-control"
           name="selected_organization_code" 
           id="selected_organization_code" 
           value="<?php echo set_value('organization_code') ?>">
</div>

<div id="total_resource_person"></div>