Strange Unexpected token ILLEGAL in JavaScript [closed]

I have a syntax error which I cannot solve. Based on W3 jQuery schools, this should be okay. Can anyone help?

<script type="text/javascript">
    jQuery(document).ready(function($) {
        $(“a”).click(function(){
            **Uncaught SyntaxError: Unexpected token ILLEGAL**
                $(#content).toggle(400);
            });
        });
</script>

Strings need to be surrounded with U+0022 (double quote - ") characters or U+0027 (apostrophe - ') characters.

Your first selector, a is surrounded with a pair of U+201C/U+201D (left double quotation mark/right double quotation mark - /) characters.

Your second selector (#content) has no quotes around it at all.


You selector needs to be a string

$(#content).toggle(400);

Should be

$("#content").toggle(400);

Take a look here for more reading jQuery Selectors. http://api.jquery.com/category/selectors/