I want to change the user value to true when a user clicks a login button in my login page. I’m a beginner level web dev student and I am having hard times to solve this. App.js Login.jsx Thanks so much for helping! Answer communication between components is a very basic concept in React. You can use mu…
I want to validate two columns from my database “name and group” if it exists display already exists and if it doesn’t exist insert into the database
this the html with ajax and it displays successful and inserts into the database but how can I display error message if the name is already exist after the validation <form action="" id=&…
Two Drop Down Menus
I wish I could use jQuery, but this has to in JavaScript. I’d appreciate the help. When “empty” (first drop down menu) is selected, I need all values from the second drop down menu (a, b, c). When “1” is selected, I need just a, b. When “2” is selected, I need just b,…
Using JS id in dropdown – works from text file but not from a php variable string
I am using an HHTML form with a dropdown which is populated from a JS script through id. The JS script to create the id “ctags” is as follows using a .txt file This dropdown populates and works as should, but I want to rather use a PHP SELECT statement to retrieve the information every time and ge…
Update one element of State React
I have a problem, a bit hard to explain. I use Hooks to set a state, from the data I receive from my API. I display it on my frontend, no problem. I would like to update ONE value, from ONE element. Here is my full component : So, when I click on my <p>, it transforms to an input.
Assign link to HTML button on GAS
UPDATE: Thank you everyone for your help, especially ale13. I have updated the question with the final code that worked for me. I am trying to create a HTML button that pops up within my Google Sheets and on click it should trigger the download of the sheet. I created the button and everything else runs perfe…
( ) => in addEventListener wont be executed
I’m pretty new to JavaScript and I struggle extending existing code of my coworker. What I try to achieve: Get all images with id = yt add an EventListener to all Call method to replace the image depending on the event error target I already implemented to logic, an this code works: But I would like to …
Replace space with new line in vue js
I am trying to replace the spaces between the name to new line in vuejs but I am not able to achieve it. Please help me find where I going wrong. Right now the names are showing as but I want it to display as Below is the code. Answer You could do this entirely in CSS with word-spacing set
CSS Border animation takes space inside table, rough animation when using position absolute
I’m trying to make a notification button with animation effect using border, but the animation is affecting the width and height of cell: What have I tried: This code should executedly fine by theory, though it’s rough when it animates. Using position: absolute and fixed broke the entire notificat…
How to recreate the += operator without using it
uh hi guys so im having a problem that i don’t know how to avoid i’m making a dictionary and i know the cause of the problem but don’t really know how to fix it javascript: html: basically whats happening is since im using the += operator whenever the function activates it runs the for loop …