php - tokenize multiselect searched text not cleared after select particular element -
please on attached image clear question
<select multiple="multiple" class="tokenize-sample" name="state_live[]" id="state_live"> <option value="">select category</option> <?php $que = $this->db->query("select * state "); foreach($que->result_array() $row_val) { ?> <option value="<?php echo $row_val['id'];?>"<?php if(isset($row_about['state_live']) && in_array($row_val['state_name'],explode(",",$row_about['state_live']))){echo "selected";}?>><?php echo $row_val['state_name'];?></option> <?php } ?> </select>[enter image description here][1]
Comments
Post a Comment