1

I am using combo box - select custom, using gentelella template. On example , gentelella select custom, we can type text on the combo box and the list on the combo box will change accordingly to the text we type.

But In my case, I can not type the text on the combo box. It won't work.

this is my view

<div class="item form-group">
                                    <label class="control-label col-md-3 col-sm-3 col-xs-12">NIK</label>
                                    <div class="col-md-6 col-sm-6 col-xs-12">
                                        <select class="select2_single form-control" tabindex="-1">
                                            <option></option>
                                            <?php foreach ($listkary as $key => $value) { ?>
                                                <option value="<? echo $value['idnik']?>"><? echo $value['kodenik']?> - <? echo $value['namakary']?></option>
                                            <? } ?>
                                        </select>
                                    </div>
                                </div>
CinCout
  • 9,486
  • 12
  • 49
  • 67
Dian.Y
  • 105
  • 1
  • 5
  • 15
  • 1
    have you included the select2.js and select2.css files, also you will need to implement `` to make sure it is initialised. I had to do this last night on a project i've been working on so I know it def works. Good luck :) – mic Jun 21 '16 at 07:45
  • hi mic, thanks. can you tell me where to put command ? I am new to webapps , i am totally blank. I already include selec2.js and select.css but no change. so I have to implement but i don't know where to put it. Please help. thanks – Dian.Y Jun 22 '16 at 01:42
  • just add it at the bottom of the view or in a js file – mic Jun 22 '16 at 05:43
  • hi mic, thank you very much for your help. it work now. – Dian.Y Jun 22 '16 at 07:34
  • Not a problem glad I could help – mic Jun 22 '16 at 09:48

0 Answers0