I have been developing a Tennis Club Management sample application using javascript, html, css, and bootstrap. The application consists of a login page and a profile page. In the profile page, I have implemented a sidebar with anchor tag links that navigate to different HTML pages when clicked.
The issue arises on the managePlayers.html page, where I have added two buttons with event listeners. I am trying to log in the browser console that a button has been clicked, but the event listener is not working as expected.
Below are the code files and screenshots for reference:
index.html (Login Page)
[index.html code here]
index.js
// --------------TESTING CODE FOR LOGIN PAGE LOGIN BUTTON CLICK----------------
[index.js code here]
The Problem (the eventListener for the buttons below are not firing up)
[Problematic eventListener code]
Screenshots
Login Page
[Login Page screenshot link]
Manage Players Page
[Manage Players Page screenshot link]
Looking for solutions, any help please?