Help getting custom JavaScript to work....getting 422 error in console
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2021
12:14 AM
Can anyone help me figure out why my custom javascript is not working? I have loaded custom CSS and custom JavaScript, and the CSS is working fine, but the JavaScript is being rejected in the browser console with a 422 error.
I am doing a simple test in the JavaScript to make sure it works...here is the simple code that just pops up an alert:
$(document).ready(function () {
$('.myclass').addEventListener("click", function() {
alert("Hello World");
});
});
I am running a Bitnami Canvas LMS server instance on VirtualBox and have installed a self-signed SSL certificate which I marked as "Always Trust" in my keychain on my MacBook.
Thanks for any help.