What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-01 06:02:04
jquery left arrow key press
<html> <head> <title>jQuery Arrow Keys | Bind Arrow Keys using jQuery</title> <script type="text/javascript" src="js/jquery-1.8.2.min.js"></script> </head> <body> Hit the arrows keys on... Add solution -
Other 2021-10-01 02:33:04
how to disable up and down arrow downscroll for a website
var keys = {}; window.addEventListener("keydown", function(e){ keys[e.keyCode] = true; switch(e.keyCode){ case 37: case 39: case 38: case 40: // Arrow keys case 32: e.preventDefault(); break; // Space... Add solution -
Other 2021-09-22 06:49:02
dont allow user to insert number greater than particular number
function isNumberKey(e) { var currentChar = parseInt(String.fromCharCode(e.keyCode), 10); if(!isNaN(currentChar)){ var nextValue = $("#txthour").val() + currentChar; //It's a string concatenation, not an addition if(pars... Add solution -
Javascript 2021-09-13 16:16:01
how to insert keycode in switch statement in javascript
$(window).on('keydown', function (e) { e.preventDefault(); if( e.KeyCode == 8 ) { $('div').append('<p>if</p>'); } switch (e.keyCode) { case 8: // Backspace $('div').append('<p>switch</p>'); break; } }); Add solution -
Javascript 2021-09-10 02:49:04
javascript ajax show result type min 3 characters
// Call datatables, and return the API to the variable for use in our code // Binds datatables to all elements with a class of datatable var dtable = $(".datatable").dataTable().api(); // Grab the datatables input box and alter how it is bound ... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5