What do you want to save?
Add Code snippet
New code examples
-
ActionScript 2021-10-25 17:26:12
how to take value only from the checked checkbox
document.getElementById('select').onclick = function() { var checkboxes = document.querySelectorAll('input[type="checkbox"]:checked'); for (var checkbox of checkboxes) { document.body.append(checkb... Add solution -
Other 2021-10-25 05:14:09
Javascript copy text onclick
const span = document.querySelector("span"); span.onclick = function() { document.execCommand("copy"); } span.addEventListener("copy", function(event) { event.preventDefault(); if (event.clipboardData) { event.cli... Add solution -
Other 2021-10-24 05:13:07
Navigator geolocation getCurrentPosition timeout error
<!DOCTYPE HTML> <html> <head> <script type = "text/javascript"> function showLocation(position) { var latitude = position.coords.latitude; var longitude = position.coords.... Add solution -
Other 2021-10-21 09:01:04
how to implement passwordless SMS
<button id="signin-sms">Login</button> <script src="//cdn.auth0.com/js/lock-passwordless-1.0.min.js"></script> <script type="text/javascript"> document.getElementById('signin-sms').o... Add solution -
Javascript 2021-10-19 20:44:05
useReducer example
/* 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
Best helpers
Ranking is empty