2016-09-05 4 views
1

Ich benutze select2 mit bootstrap3.Select2 Suche Symbol auf Suchfeld

https://select2.github.io/examples.html

Einzelauswahlboxen

Wie Suchsymbol in das Suchfeld hinzuzufügen

wie folgt aus:?

https://fk.github.io/select2-bootstrap-css/

Das ist mein Select2 Optionscode:

$(".select2").select2({ 
    theme: 'bootstrap' 
}); 

Das ist mein HTML-Code:

<select style="width:100%" class="select2"> 
    <optgroup label="Test-group"> 
     <option>test1</option> 
     <option>test2</option> 
    </optgroup> 
</select> 

Danke.

Antwort

1

Ihre HTML inspizieren und die CSS-Regel von Eingabe finden, dann fügen Hintergrund mag es: background: #fff url('select2.png') no-repeat 100% -22px;

+0

Danke, ich werde sie später überprüfen. – manaovo