Questions tagged [onkeyup]

This is a JavaScript event that fires upon releasing a keyboard key.

This is a JavaScript event that fires upon releasing a keyboard key.

482 questions
5
votes
2 answers

Navigate to rel=next and rel=prev page using left and right arrow

I have a page with prev and next links: Is it possible to…
William Entriken
  • 37,208
  • 23
  • 149
  • 195
5
votes
1 answer

jQuery triggers keyup event only if it was attached with jQuery

Realy messed up with triggering keyup event using jQuery. Here is the clean example http://jsfiddle.net/xQcGM/2/ When I type in any of input's, they both fire event, but when I try to fire it programmatically ($(element).trigger('event')) only the…
disfated
  • 10,633
  • 12
  • 39
  • 50
5
votes
1 answer

jquery mobile - keyup keydown on mobile devices

I have a need for an input (type='text') to go send results to the my server to check availability of something typed by the user. I use the delegate to add the event handlers to the elements: $(document).delegate('#signup', 'pageshow', function()…
Nigel Johnson
  • 522
  • 1
  • 5
  • 21
5
votes
2 answers

onkeyup event in Safari on IOS7 from a bluetooth keyboard

I have the following setup: Bluetooth scanner iPad Webpage with a textfield for scan input Usage: User focus textfield and scan barcode with bluetooth scanner Scanner adds ENTER (13) at the end of the scan Problem: On Safari in IOS7 there seems…
EmilPennlov
  • 179
  • 2
  • 5
4
votes
1 answer

Getting the character from keyup event

I'm handling the keyup event, and need to get the character being typed. When I type a dot, data.keyCode is 190, but when I'm trying to convert it using String.fromCharCode(190), I'm getting the "¾" symbol. This reference tells me 190 is the period…
ulu
  • 5,872
  • 4
  • 42
  • 51
4
votes
3 answers

Adding a delay before keyup() fires in jQuery

I have read through some of the suggested questions but I am not sure exactly how to implement them: (jquery/js) - get text from field on keyup, but with delay for further typing How to delay the .keyup() handler until the user stops typing? How to…
Seany84
  • 5,526
  • 5
  • 42
  • 67
4
votes
1 answer

How can I prevent the keyup event fires twice when remove a character from input?

When remove a predetermined character from the input keyup event fires twice. How can I prevent this? HTML JS var block = { 'ch1': { 'key':'/', 'keycode':'191' }, 'ch2': { 'key':':', …
midstack
  • 2,105
  • 7
  • 44
  • 73
4
votes
5 answers

Jquery: check if variable is defined after keyup() function

Am creating register form with jquery function keyup(), for example if input is correct I assign it to a txtuname variable,then I press register button and I need to know that all form variables are correct and defined.Code below is not…
Darius92
  • 301
  • 5
  • 21
4
votes
1 answer

Javascript keyup / onkeyup wrong element

Is anyone having the same issue? When typing quickly into a textbox and skip to a next textbox (by pushing the 'tab' key) the keyup event is registered from the wrong element. Behaviour: Precondition: We have two textboxes; with javascript…
Chris
  • 41
  • 1
4
votes
2 answers

onKeyLongPress not working for KeyboardKey

How to catch onKeyLongPress on KeyboardKey. The code below works only if I put "KEYCODE_VOLUME_DOWN" or "KEYCODE_VOLUME_UP" instead of "KEYCODE_Q". I also tried to write "113" instead of "KeyEvent.KEYCODE_Q", but it didn't help. (If you need the XML…
4
votes
2 answers

Check if all inputs are empty

I have multiple inputs on my page, when any them are filled, an "info div" appears on the side; Now if all the inputs are manually cleared (on keyup), I need to hide that "info div". How can I check (on keyup) that all of the inputs are empty at…
John
  • 3,529
  • 14
  • 42
  • 48
4
votes
2 answers

jQuery sum on change keyup() and output in Text box

I have the following jQuery code for finding the sum of all table rows, now it finds the sum on keyup. I want the sum to be already calculated. I wanted to have a hidden field like an input with a value, so the sum is automatically calculated. Now…
user3503395
  • 61
  • 2
  • 4
  • 10
4
votes
2 answers

Possible to bind keyup to entire form?

Is it possible to bind keyup() to an entire
? For example, I have multiple fields inside a form, and I want to bind a keyup event to all of them without having to attach a keyup event handler to each one. Rather, I want to…
George Newton
  • 3,153
  • 7
  • 34
  • 49
4
votes
4 answers

How to submit form on keypress?

I use this script to search in a static page But i want this to search when i type in the text input and not when i click the button, i searchd and i found that any of this would…
firstroad
  • 57
  • 1
  • 1
  • 9
4
votes
2 answers

JQuery keyup prevents text selecion in Chrome. How to solve?

I have a function that transforms the text to uppercase on keyup. The code looks like this (I think I found it on SO too): $(selector).bind('keyup', function (e) { if (e.which >= 97 && e.which <= 122) { var newKey = e.which - 32; e.keyCode…
user800014
1 2
3
32 33