i’m using wordpress and i’m trying to run a script created inside a wordpress page.
Outside wordpress everything works fine, but not copyed inside wp.
Google chrome debug console displays this error:

Uncaught SyntaxError: Unexpected toke ILLEGAL

the script is this one:

<script>
    jQuery(document).ready(function ($) {
        $("#sys1").click(function () {
            $("#hub img").css("opacity", "0.3");
            $("#thermostat img").css("opacity", "0.3");
            $("#boiler img").css("opacity", "0.3");
            $("#valve img").css("opacity", "0.3");
            $("#sensor img").css("opacity", "0.3");
            $("#plug img").css("opacity", "0.3");
            $("#underfloor img").css("opacity", "0.3");
            $("#hub img").css("opacity", "1");
            $("#thermostat img").css("opacity", "1");
            $("#boiler img").css("opacity", "1");
            $(".products-page-system-information-container").html("<div class='products-page-system-information-added-content'>Test divs content add panel 1</div>");
            $("#sys2").removeClass("active");
            $("#sys3").removeClass("active");
            $("#sys4").removeClass("active");
            $("#sys5").removeClass("active");
            $("#sys1").addClass("active");
        });
    });
</script>

any ideas? Thanks a lot

Read more here: google chrome debug console jquery error "token ILLEGAL


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , , , , , ,

Wordpress related questions and answers: