What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-08 15:24:01
smtpjs attachment
<html> <script src="https://smtpjs.com/v3/smtp.js"></script> <input type="file" id="fileupload" onchange="uploadFileToServer()" /> <script> function uploadFileToServer() { var file = ... Add solution -
Other 2021-09-08 14:08:02
Back button directive Angular
/** Navigation service ***/ import { Injectable } from '@angular/core' import { Location } from '@angular/common' import { Router, NavigationEnd } from '@angular/router' @Injectable({ providedIn: 'root' }) export class NavigationService { private hist... Add solution -
Java 2021-09-07 23:27:02
check key is pressed java
if (evt. getKeyCode() == KeyEvent. VK_SHIFT) Add solution -
Html 2021-09-07 20:12:01
file upload html firebase
const [imagetoPost, setImagetoPost] = useState(null); const sendPost = (e) => { e.preventDefault(); if (!post) return null; db.collection('posts') .add({ // whatever you want to add other than file }) .then((doc) => { if (imagetoPost... Add solution -
Javascript 2021-09-07 05:23:05
validar solo letras js
$("input.nombre").bind('keypress', function(event) { var regex = new RegExp("^[a-zA-Z ]+$"); var key = String.fromCharCode(!event.charCode ? event.which : event.charCode); if (!regex.test(key)) { event.preventDefault(); r... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5