Skip to content

Javascript to change of a list items color when checked

I am trying to write Javascript so that when one of these list items is selected by the user, the color changes red just for the selected item. The issue I am running into is that this selects all of the list items, instead of the one that is selected. Right now my Javascript looks like this: The HTML looks

How to Change links in node.js

i’ve been trying for a while to get the tabs on my navigation bar to change (including the link) when a user logs in. The whole thing is a problem on the index page, as you should enter it both logged …

get message between two user

i want to retrieve conversation between two user sorting by the newest with the user sender field my message and user schema : const messageSchema = new mongoose.Schema({ from:{ type: mongoose….

Not able to remove option in cloned select

I have an issue with removing a cloned option that I created. I can remove the original option, but nothing is removed from the clone. What is wrong with this code? I tried several methods but still failed. Thanks for helping me. Answer The issue is because you’re selecting the option elements. As such …

Flappy bird code not working – JavaScript

I wanted to write a flappy bird game in javascript but it doesn’t seem to work when I open it in my browser. the css works. lines 147, 154, 31 and 160 in js all seem to be errors, but I do not understand how to fix them. this is my html: There are many errors in the js when

symbol/ how to split into two separate numbers

hi everyone so i’m solving the problem i have a script this is the result from the web 1/5 how to split into two separate numbers? the output is this how to do not let go if the number is greater …