SyntaxError: illegal character

javascript, jquery

Solution

You have indeed an unprintable character before the `</script>` tag. Fortunately jsFiddle shows it: http://jsfiddle.net/byg7b/.

How to delete it?

Open the file in your editor, move the cursor before `</script>` and press backspace/delete until you delete `;`. Then add `;` again.

Problem

I have problem with with last line of this code. In firebug/console I see `SyntaxError: illegal character after });` When i look in firebug/script i see `});a</script>`. I don't know how to delete it. ``` <script type="text/javascript" > $(function() { $('#filput').checkFileType({ allowedExtensions: ['jpg', 'jpeg'], success: function() { alert('Success'); }, error: function() { alert('Error'); } }); });​</script> ```

Original source