I'm having a few issues getting a keyup event to fire on my iPhone, my code is as follows:          var passwordArray = ["word", "test", "hello", "another", "here"];          var test = document.getElemen...
Is anybody else having problems with the keyup event in iOS 9 not firing?  Just a simple test bed replicates the issue for me.  <input id="txtInput" />   Vanilla JS:  document.getElementById('txtInput').onkeyup = function () {...
I'm using a keyup detection into all my forms to detect the enter button.  This is easy, when you are focused in a form's input if you hit enter and the event keyCode is equal to 13 then the form submitted.   But now I want to detect the Cmd...
How to make Ctrl+V or Paste not trigger the keyup function TWICE?  This is a problem for me because I made an AutoComplete functionality, and it displays the same data twice when i paste in a textbox. I hope this makes more sense now.  EDIT:  Okay gu...
i try to capture this key : alt+arrow down, alt+arrow up. First, i capture alt key down :  var isAlt = false; $(document).keydown(function (e) {       if(e.which == 18){isAlt=true;}  }).keyup(function (e) {     if(e.which == 18){isAlt=false;} });   t...
Am using .keyup to filter my auto complete.  However it only allows me to enter the first digit. so if my data is "Apple"  when i type A -  it shows Apple but i cannot type "AP" as the "P" disappears.   I was expecting that i...
this is my code in JavaScript:  var changeIdValue =  function(id, value) { document.getElementById(id).style.height = value; };  document.getElementById ("balklongwaarde").addEventListener("click", function(){ changeIdValue("balkl...
I have a text field, which will accept only the following characters:  Allowed characters: [a-z 0-9 + # - .]  This is the same filter SO does in the 'Tags' field, when you're asking a question. If the user types an invalid character, i wa...
I am building a browser interface to a terminal. I need to catch both character (alphanumeric, dot, slash,...) and non-character key presses (arrows, F1-F12,...). Also, if the user holds some key down, it would be nice to get repeated keypresses (the...
I'm trying to make a real-time calculator based on form inputs, when I use a sample div it works but I seem to be missing something when I try to print the total inside an input...  Working Markup Solution:   <input id='first' type=...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.