javascript - color picker plugin script import cause unexpected token -


i'm trying import color picker plugin (http://www.eyecon.ro/colorpicker/) backend of easyappointments.org, follow plugin documentation , example page, strange reason when insert script head of backend page error:

uncaught syntaxerror: unexpected token < jquery.js:1

this structure of import:

<script type="text/javascript" src="application/third_party/js/jquery.js"></script> 

if want see complete code check this link.

the code long, sorry if not pasted here. how can figure out causing problem? bit 'rusty js , problem stopping me little'

update jquery content:

http://pastebin.com/ee01ifzh

edit: after detailed discussion of problem, found correct solution:

the inclusion of css , javascript files wrong. css , js files need placed in js folder in project root, third_party folder for php extensions only.

inclusion order important. when including javascript, make sure include basic scripts first. in case, begin jquery, follow additional libraries timepicker , include own js last.


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -