Open zarghamirtza opened 7 years ago
in header i loaded the files like this this is included in header.php
<script type="text/javascript" src="./js/bootstrap-tokenfield.js"></script>
my input field is written as
----------------- start-a-petition.php:254 ------------------ $('#tokenfield').tokenfield({ autocomplete: { source: ['red','blue','green','yellow','violet','brown','purple','black','white'], delay: 100 }, showAutocompleteOnFocus: true }); ------- getting error ---------------------
Uncaught TypeError: $(...).tokenfield is not a function at start-a-petition.php:254
Hi @zarghamirtza, have you solve this issue?
I am facing the same a problem Uncaught TypeError: $(...).tokenfield is not a function with jQuery 2.2.4 or 3.2.1 (nothing changes).
Uncaught TypeError: $(...).tokenfield is not a function
in header i loaded the files like this this is included in header.php
my input field is written as
----------------- start-a-petition.php:254 ------------------ $('#tokenfield').tokenfield({ autocomplete: { source: ['red','blue','green','yellow','violet','brown','purple','black','white'], delay: 100 }, showAutocompleteOnFocus: true }); ------- getting error ---------------------
Uncaught TypeError: $(...).tokenfield is not a function at start-a-petition.php:254