<div class="form-group"> <label class="col-md-3 control-label sbold text-right">Category</label> <div class="col-md-3"> <select class="form-control select2" name="type"> <?php foreach ($ListType as $key => $value){ $filter['type'] == $value ? $xSelect = ' selected="selected"' : $xSelect = ''; echo '<option value="'.$value.'"'.$xSelect.'>'.$value.'</option>'; } ?> </select> </div> </div>
$ListType = array("ALL CATEGORY", "STAFF", "SUPERVISOR");
<option .. disabled>
disabled
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)