Browser won't show my input value in address bar, and won't log values in console

Basically when I type simple form like this <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Document</title> </head> <body> <div id="loginContainer"> <form> <div> <label for="name">Name:</label> <input id="name" type="text" /> </div> <div> <label for="password">Password:</label> <input id="password" type="password" /> </div> <input type="submit" value="Login" /> </form> </div> <script> let nameVal = document.getElementById("name").value; let… Read More Browser won't show my input value in address bar, and won't log values in console

Div based on selection not working, when new selection line was added

i want to create form when there will be possibility to add/remove additional selection rows, but all of this new selection should have possibility to show DIV depends on selected option. Everything is working fine for first row which is loaded with page, DIV is showing input form, normal text or another selection (this one… Read More Div based on selection not working, when new selection line was added

Save user input from Angular ReactiveForm in variable

I have a ReactiveForm in Angular with validators. I’m trying to hand over the input data the user made to my component.ts and save it in a variable. In my html file: <form [formGroup]="loginForm" (ngSubmit)="submitLogin(emailLogin, passwordLogin)"> and in my component.ts: emailLogin: string = ""; passwordLogin: string = ""; submitLogin( emailLogin: string, passwordLogin: string) { this.emailLogin… Read More Save user input from Angular ReactiveForm in variable

Change dropdown placeholder text

I have a dropdown input <select id="training" name="TrainingTopic"> <option value="training 10">training 10</option> <option value="training 9">training 9</option> </select> when i choose one of option dropdown text is change to selected option text, can i change this text on dropdown placeholder via js? like when i open dropdown i see ‘training 10’ and ‘training 9’ option but… Read More Change dropdown placeholder text