<div class="form-group">
<label class="col-sm-3 control-label label_alignment" for="class_description">
<b>Description*</b>
</label>
<div class="col-sm-6">
<!-- <textarea name="details" rows="4" class="form-control" required="required" id="class_description"></textarea> -->
<?php $data = array(
'name' => 'details',
'id' => 'class_description',
'value' => '',
'rows' => '4',
'required' => 'required',
'class' => 'form-control',
'required' => 'required',
'minlength' => '50'
);
echo form_textarea($data); ?>
<span class="red_color"></span>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label label_alignment" for="category">
<b>Category of Class</b>
</label>
<div class="col-sm-6">
<select name="parent_cat" class="form-control city_picker select2-hidden-accessible" data-plugin="select2" id="countriesDrp" tabindex="-1" aria-hidden="true" required>
<option value="" selected="selected" >Select City</option>
<?php foreach($categories as $hg_city):?>
<option value="<?php echo $hg_city->category_id?>"><?php echo $hg_city->categorie?></option>
<?php endforeach;?>
</select>