• Resolved Julius0range

    (@julius0range)


    I’ve been perusing sites for 2 days trying to figure this out to no avail.

    I have a function attached to an anchor tag to trigger a menu like so:

    <a onmouseover="showSecMenu()">Categories</a>

    The file is external and attached in the header with the following line:

    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/sec_menu.js"></script>

    The function in the “sec_menu.js” looks like this:

    function showSecMenu() {
    	jQuery("#sec_menu").css("display") = "block";
    }

    I can get it to kick an alert with standard JS, no problem. Any attempts to use jQuery causes the error “Uncaught ReferenceError: Invalid left-hand side in assignment” in Chrome and “jQuery is not defined” in Firefox

    Please help

Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘jQuery not working’ is closed to new replies.