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:
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
Post a Comment