Skip to content Skip to sidebar Skip to footer

Syntaxerror: Illegal Character

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. I don

Solution 1:

Remove the `` in the line:

});``

Solution 2:

Remove the two ticks after closing }) of your checkFileType function:

$(function() {
    $('#filput').checkFileType({
        allowedExtensions: ['jpg', 'jpeg'],
        success: function() {
            alert('Success');
        },
        error: function() {
            alert('Error');
        }
    });``// <-- Here
});​

Post a Comment for "Syntaxerror: Illegal Character"