Related to this question I am getting this error:
Uncaught SyntaxError: Unexpected token ILLEGAL
with this code:
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="js/highcharts.js"></script>
<script src="js/inspiritas.js"></script>
<script src="bootstrap/js/bootstrap-dropdown.js"></script>
<script src="bootstrap/js/bootstrap-collapse.js"></script>
<script>
$(document).ready(function() {
$(document).on('click', 'a.expand', function(e) {
e.preventDefault();
$(this).find('ul').slideToggle();
});
});
</script>
The error is in the last });
I don’t see anything wrong, removing the js files doesnt help.
Last line of code, you have an illegal invisible character.
This happens when you copy/paste from jsFiddle or perhaps other sites.
Delete that line, and some of the space around it, and retype it manually.