Ich bin mit Bootstrap-tokenfield Liste der Farbe anzuzeigen, erklärte ich die notwendige Bibliothek JS und CSS, aber es funktioniert nicht:Bootstrap-tokenfield nicht
Script:
//$('#myfiltre').tokenfield();
$('#myfiltre').tokenfield({
autocomplete: {
source: ['red','blue','green','yellow','violet','brown','purple','black','white'],
delay: 100
},
showAutocompleteOnFocus: true
});
Markup (in index.html
):
<div class="space">
<input type="text" style="width: 50%;" class="form-control" id="myfiltre" />
<a href="#" id="clear">Clear</a>
</div>
<link rel="stylesheet" type="text/css" href="mystyle/bootstrap-tokenfield.css">
<link rel="stylesheet" type="text/css" href="mystyle/bootstrap-tokenfield.min.css">
<script src="public/bootstrap-tokenfield.min.js"></script>
<script src="public/bootstrap-tokenfield.js"></script>
<script src="public/jquery-1.11.2.min.js"></script>
<script src="public/jquery-ui.js"></script>
Dank für die Hilfe!
das Problem ist seit ican't die Liste, wenn onfocus, die automatische Vervollständigung funktioniert nicht !!!! – Fredj