What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-29 13:39:02
Function that replaces character and allow only numbers into the textbox
This technique we can use on the onkeyup property of HTML element <input type="text" id="txtMobileNo" onkeyup="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" Add solution -
Other 2021-09-24 23:33:03
how to simulate left mouse click with c in windows
// // keystroke.c - Pauses, then simulates a key press // and release of the "A" key. // // Written by Ted Burke - last updated 17-4-2012 // // To compile with MinGW: // // gcc -o keystroke.exe keystroke.c // // To run the program: // // ... Add solution -
Javascript 2021-09-24 14:56:02
onclick enter key
<form> <input id="myInput" placeholder="Some text.." value=""> <input type="submit" id="myBtn" value="Submit"> </form> <script> var input = document.getElem... Add solution -
Javascript 2021-09-24 11:22:02
how to press enter key automatically using javascript
<form> <input id="myInput" placeholder="Some text.." value=""> <input type="submit" id="myBtn" value="Submit"> </form> <script> var input = document.getElem... Add solution -
Html 2021-09-24 05:15:02
html ecommerece search box
<div class="row"> <div class="left" style="background-color:transparent;"> <h3 style="text-align: center;">Plants</h3> <input type="text" id="mySearch" ... Add solution -
Javascript 2021-09-23 23:32:03
javascript enable a button once an input text filled
document.getElementById("name").addEventListener("keyup", function() { var nameInput = document.getElementById('name').value; if (nameInput != "") { document.getElementById('send').removeAttribute("disabl... Add solution