What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-01-26 08:40:31
username validation
<html> <head> <title></title> </head> <body> <form method="post" action=""> username:<input type="text" id="name" onkeyup="validation()"> </form> &... Add solution -
Other 2022-01-24 16:06:06
Drawing a rectangle in Canvas with user input
<!doctype html> <html> <head> <link rel="stylesheet" type="text/css" media="all" href="css/reset.css" /> <!-- reset css --> <script type="text/javascript" src="http://... Add solution -
Javascript 2022-01-23 07:56:08
adding event listener keypress event in javascript
let msg = document.getDocumentById('#message'); msg.addEventListener("keydown", (event) => { // handle keydown }); msg.addEventListener("keypress", (event) => { // handle keypress }); msg.addEventListener("keyup&q... Add solution -
Javascript 2021-11-21 19:21:28
autosize a textarea using Prototype
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script src="http://www.google.com/jsapi"></script> <... Add solution -
Other 2021-11-21 04:42:12
how to change to input of a form dynamically
Chance: <input type="text" name="chance" value="" onkeyup="document.querySelector('input[name=payout]').value=this.value?1/this.value*98:''"> <br/><br/>Payout: <input type="text" n... Add solution -
Other 2021-11-20 11:57:18
how to get value from input field while typing
$("#txt").keyup(function(event) { text = $(this).val(); $("div").text(text); }); $('#txt').focusout(function(){ if($(this).val().length < 20){ alert(" Minimum 20 Words required...!! "); } }) Add solution