I attempted to implement a dark mode using jQuery, but it is not working as expected. I am seeking assistance. I would like to enable the dark mode when clicking on the #btntheme ID, but for some reason, it is not functioning correctly. My goal is to be able to switch back to a colorful theme upon clicking. Does anyone have any insights on how to achieve this?
<div class="container">
<div class="row" style="background:">
<div class="two columns absolute" style="background: ">
<a href="home.php"> <img src="../content/logo_tw.png" width="50" height="50" alt="logo"></a><br>
<a href="home.php"> <img src="../content/home.png" width="20" height="20" alt="home"><strong>Home</strong></a><br>
<a href="recherche.php"> <img src="../content/loupe.jpg" width="20" height="20"
alt="recherche"><strong>Search</strong></a><br>
<a href="messages.php"> <img src="../content/message.png" width="20" height="20"
alt="messages"><strong>Messages</strong></a><br>
<a href="profile.php"> <img src="../content/profile.png" width="20" height="20"
alt="profile"><strong>Profile</strong></a><br>
</div>
<div class="ten columns separator border" style="background: ">
<div class="pseudo">
<a href="profile.php">
<h3>Risitas</h3>
</div>
</a>
<hr>
<div id="fond"></div>
<div id="avatar">
<img src="../content/risitasb.jpg">
<a href="modif_profil.php"> <button id="btnfollow" class="button-primary">Edit profile</button></a>
</div>
<form action="profile.php" method="post">
<button id="btntheme" type="submit" class="button-primary">Theme</button>
<button id="btncommentaire" class="button-primary">Comments</button>
<button id="btnretweet" class="button-primary">Retweet</button>
</form>
</div>
</div>
</div>
</body>