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...
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=...
We have a web app that allows users to scan a barcode or click a link that will hide the barcode input and show a JQuery Chosen select menu.  To save users having to manually swap between the product search select menu and the barcode input I'm c...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.