<div id="multi_video">
    <div class="form-group col-sm-8">
        <label for="upload_video">Upload Video</label><span class="required" style="color: red"> * </span>
        <input type="file" class="form-control" id="upload_video" name="upload_video[]" value="<?php echo set_value('upload_video'); ?>" placeholder="Select video" >
    </div>
    <div class="form-group col-sm-8" style="color: red"><?php echo form_error('upload_video'); ?>  </div>    

    <div class="form-group col-sm-8">
        <label for="video_work_files">Video Work files</label><span class="required" style="color: red"> * </span><br>
        <input onclick="uploadFile(this.value)" type="radio" name="video_work_files" id="status" value="1"  />Yes
        <input onclick="uploadFile(this.value)" type="radio" name="video_work_files" id="status" value="0" />No
    </div>
    <div class="form-group col-sm-8" style="color: red"><?php echo form_error('video_work_files'); ?>  </div>

    <div class="form-group col-sm-8" id="up_file">
        <script>
            function uploadFile($value) {
                if ($value == 1) {
                    document.getElementById('up_file').innerHTML = "<br><input style='float:left;' type='file' class='form-control' id='upload_files_name' name='upload_files_name[][]' value='' placeholder='Select File'>";
                    document.getElementById('message1').innerHTML = "<br><p style='color:red;'>File Select Is required</p>";
                }
                if ($value == 0) {
                    document.getElementById('up_file').innerHTML = "";
                    document.getElementById('message1').innerHTML = "";
                }
            }

        </script> 
    </div>

</div>