What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-08-29 11:11:01
react usememo
/* A common use case is to access a child imperatively: */ function TextInputWithFocusButton() { const inputEl = useRef(null); const onButtonClick = () => { // `current` points to the mounted text input element inputEl.current.focus(); ... Add solution -
Html 2021-08-29 09:58:02
how to make a clear button in javascript
<script> function clear_inputs(){ inputs=document.getElementsByClassName('inputs') for(input of inputs){ input.value=' ' ///this emptys the inputs } } </script> <input class='inputs' type="text"> <input ... Add solution -
Javascript 2021-08-29 09:26:02
semantic ui react modal
import React from 'react' import { Button, Header, Image, Modal } from 'semantic-ui-react' function ModalExampleModal() { const [open, setOpen] = React.useState(false) return ( <Modal onClose={() => setOpen(false)} onOpen={() =... Add solution -
Html 2021-08-27 23:08:02
html button that hide and show
<button onclick="toggleText()">button</button> <p id="Myid">Text</p> <script> function toggleText(){ var x = document.getElementById("Myid"); if (x.style.display === "none") { x... Add solution -
Javascript 2021-08-27 13:30:01
select all checkboxes html js
<script language="JavaScript"> function toggle(source) { checkboxes = document.getElementsByName('foo'); for(var i=0, n=checkboxes.length;i<n;i++) { checkboxes[i].checked = source.checked; } } </script> <input type=&... Add solution
Best helpers
Ranking is empty