sliptree / bootstrap-tokenfield

A jQuery tag/token input plugin for Twitter's Bootstrap, by the guys from Sliptree
http://sliptree.github.io/bootstrap-tokenfield/
Other
861 stars 238 forks source link

Uncaught TypeError: $(...).tokenfield is not a function at start-a-petition.php:254 #304

Open zarghamirtza opened 7 years ago

zarghamirtza commented 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

davidesigner commented 6 years ago

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).