What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-17 04:40:13
populate dropdown with a variable
/* HTML: <select id="myoptions"> </select> */ // Javascript: var x = "Jenny,John,Stephanie,Marc,Ryan,Jessica"; var options = x.split(","); var select = document.getElementById('myoptions'); for(var i=0; i<o... Add solution -
Javascript 2022-03-16 20:50:06
JAVASCRIPT EVENT.TARGET
Using the event.target property together with the element.tagName property to find out which element triggered a specified event: <body onclick="myFunction(event)"> <p>Click on any elements in this document to find out which element... Add solution -
Javascript 2022-03-16 20:15:02
how to create table using DOM
function render(){ for (let i = 0; i < allMovie.length; i++) { tr = document.createElement('tr'); tr.setAttribute("class", "mainTR"); table.appendChild(tr); var td1 = document.createElement('td'); td1.textConten... Add solution -
Javascript 2022-03-16 18:05:04
react useeffect common dependency
import React, { useState, useRef, useEffect } from "react"; function EffectsDemoNoDependency() { const [title, setTitle] = useState("default title"); const titleRef = useRef(); useEffect(() => { console.log("useEffect... Add solution -
Other 2022-03-16 16:15:33
more than 2x speed on youtube
Windows: Ctrl + Shift + J macOS: Command + Option + J Copy and paste this into the console: document.getElementsByTagName("video")[0].playbackRate = x Replace x with the speed you want the video to be played at, and enter/return. Works for spe... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5