Thursday, April 25, 2024
 Popular · Latest · Hot · Upcoming
183
rated 0 times [  189] [ 6]  / answers: 1 / hits: 43837  / 10 Years ago, thu, february 20, 2014, 12:00:00

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>

More From » jquery

 Answers
53

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



enter






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.


[#72423] Tuesday, February 18, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ethanc

Total Points: 57
Total Questions: 111
Total Answers: 111

Location: Vanuatu
Member since Fri, May 13, 2022
2 Years ago
;