Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError: expected expression, got '.' #721

Open
edwolfe807 opened this issue Jan 30, 2020 · 0 comments
Open

SyntaxError: expected expression, got '.' #721

edwolfe807 opened this issue Jan 30, 2020 · 0 comments

Comments

@edwolfe807
Copy link

I receive the following console error (no other errors of any kind):

SyntaxError: expected expression, got '.'bootstrap-switch.min.css:1

HTML:

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
<!-- SCR Popper -->         <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js"></script>
<!-- SCR JQuery -->         <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!-- SCR Bootstrap 4 -->    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script>


<!-- SCR BS4 Select -->     <script src="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.12/dist/js/bootstrap-select.min.js"></script>
<!-- SCR BS4 Select EN -->  <script src="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.12/dist/js/i18n/defaults-en_US.min.js"></script>
<!-- SCR BS4 Switch -->     <script src="dist/bootstrap-switch/dist/js/bootstrap-switch.js"></script>

<!-- CSS Bootstrap 4 -->    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<!-- CSS BS4 Switch -->     <script src="dist/bootstrap-switch/dist/css/bootstrap4/bootstrap-switch.min.css"></script>

        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <input type="checkbox" name="my-checkbox" checked>
        <script>
            $("[name='my-checkbox']").bootstrapSwitch();
        </script>
    </body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant