I’m trying to create a web application to manage the users of my Discord server. In my database, I have stored only the users’ ids. I tried to use the discord.js API, but from what I’ve understood it requires a discord bot to do that. That’s not what I want. I would like to retrieve th…
Warning console : Each child in a list should have a unique “key” prop in table in code react.js
I want to correct the warning “Each child in a list should have a unique” key “prop” in the console. I tried adding the props “rowkey”, “key” in the but the problem still exists. Here is the warning on the console:: Answer You need to add ‘key’ prop …
position the translation of the English sentence on the right edge
I have an English sentence and its translation to an RTL sentence right below it: So far I can position the RTL sentence only at the very left or center of the English one. How can I position RTL sentence at the right edge of the English sentence like this: Answer grid and justify-content might help:
Select element only if it is immidiatly followed by another element
In JavaScript if I get all li elements with getElementsByTagName(“li”); how do I then only select li elements that are directly followed by span? For example: Here I want only to select 2nd li because it is followed by span immediately and not the first one because it opens with text. Answer the f…
Vue bindings and CSS in HTML does not work
I am trying to display vue within an HTML. It worked properly with the vue cli but now that I am trying to integrate it in a bare HTML file, CSS doesn’t work properly anymore. It might as well has to do with the bindings of vue since the shown bar should repeat three time, but is only shown once.
toggle (enable/disable) between two divs in user form
I’m new in JavaScript (not familiar yet with jquery) and I’m trying to insert some logic into my form. I want to be able to give the user the option to choose between two options (in my example: option_1 OR option_2) and soon the user insert some text to option_1 I want all sub-options in option_2…
How to do a web scraping using Puppeteer and publish it?
I would like to do a web-scraping using Puppeteer. It would be to obtain data from an external URL when the user clicks a button within my application. My application would have to visit an external URL, fill out a form, click on a button, get the data returned and display it to the user within my application…
How to display elements of this array?
I want all the values of i for which the number is repeating in newArr array. Statement (a) gives me the indices and I want to store them in an array named rem. However console.log(rem[0]) is undefined. What can I do? Answer you mean this?
Strip everything after the last sentence [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago. Improve this question I have this string: Using javascript regex, how can I strip everything tha…
Implement follow and unfollow button in React.js
I’m trying to implement a follow and unfollow button in my app. I’ve been trying to update it in the state, but when I click the follow button it changes all the user’s buttons (not only the one clicked). Now I’m a bit confused on how to show unfollow button if the user is already foll…