What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-15 20:59:02
how to show input value in html using javascript
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Get Text Input Field Value in JavaScript</title> </head> <body> <input type="text" placeholder="... Add solution -
Javascript 2021-09-15 18:34:02
get value from textbox in vanilla javascript
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Get Text Input Field Value in JavaScript</title> </head> <body> <input type="text" placeholder="... Add solution -
Javascript 2021-09-15 18:20:03
how to redirect back to previous page onClick react router
import { useHistory } from 'react-router-dom'; function app() { let history = useHistory(); const redirect = () => { history.push('/your-path') } return ( <div> <button onClick={redirect}>Redirect</button> ... Add solution -
Html 2021-09-15 09:41:03
how to make a music playlist html
<!-- There are several ways but if you are a begginer this is quite simpler--> <!--In Your JavaScript Code--> <script> <!-- Make an array of the song locations in javascript --> Arr = ['song1.mp3', 'song2.mp3', 'song3.mp3'] ... Add solution -
Javascript 2021-09-15 09:25:02
immer reducer hook use
import React from "react"; import { useImmerReducer } from "use-immer"; const initialState = { count: 0 }; function reducer(draft, action) { switch (action.type) { case "reset": return initialState; case &qu... Add solution -
Javascript 2021-09-15 07:36:03
bind an event to dom element angular
import { AfterViewInit, Component, ElementRef} from '@angular/core'; constructor(private elementRef:ElementRef) {} ngAfterViewInit() { this.elementRef.nativeElement.querySelector('my-element') .addEventListener('click',... Add solution -
Javascript 2021-09-15 07:12:04
passing html vlaues to Javascript function
<body> <h1>Adding 'a' and 'b'</h1> a: <input type="number" name="a" id="a"><br> b: <input type="number" name="b" id="b"><br> <button onclick=&q... Add solution
Best helpers
Ranking is empty