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
10
votes
3 answers

jQuery Cleditor get textarea value on keyup

I'm using Cleditor http://premiumsoftware.net/cleditor/docs/GettingStarted.html. I want to get the value on keyup and insert the text into another div. cleditor comes with change() event that i'm currently using in the jsfiddle example below, but…
Pinkie
  • 10,126
  • 22
  • 78
  • 124
10
votes
3 answers

iOS 9 - keyup event not firing

Is anybody else having problems with the keyup event in iOS 9 not firing? Just a simple test bed replicates the issue for me. Vanilla JS: document.getElementById('txtInput').onkeyup = function () { console.log('keyup…
keldar
  • 6,152
  • 10
  • 52
  • 82
9
votes
3 answers

how i can execute a jQuery function after a time period when event fire in jQuery?

I want to fire a event on keyup of textbox 300 milisecond later $("#blah").keyup(function () { //code is here }).delay(300).myfunction(); when i try to execute this function i found error that myfunction is not a…
delete my account
9
votes
1 answer

Is it possible to get the key code from onkeyup?

I know that when working with JavaScript or jQuery. I can add an event listener on an object to call a function when a key is pressed. However, if the function is launched from HTML, as in the following example: function callMyFunction…
azoundria
  • 940
  • 1
  • 8
  • 24
9
votes
4 answers

onKeyUp not working in React where onChange did

I'm doing a React coding challenge that requires a value to be updated onKeyUp. I initially set it to update onChange but the tests require onKeyUp so I tried to change it to that, but my fields are no longer updating and I can't type anything into…
Cdhippen
  • 615
  • 1
  • 10
  • 32
8
votes
5 answers

jQuery keyup and 'enter' in Safari

I am using jQuery and want to make it possible for the user to hit enter after entering data into a search field to start the search. I'm using the following code: $('#textSearch').keyup(function (event) { if (event.keyCode ==…
Martin
  • 2,163
  • 6
  • 21
  • 16
8
votes
3 answers

prevent "up arrow" key reseting cursor position within textbox

I recently added some predictive text input fields to the web-app I am supporting. Big deal, right? Not really, seems like if your web-app doesn't do this -- you are already behind the times and your end-users are complaining. (At least that's how…
user1492226
8
votes
3 answers

Trying to add delay to jQuery AJAX request

I am trying to delay an AJAX request so that it is sent out 2-3 seconds after the LAST keyup of an input cell. So far I have managed to delay the requests, but after 2-3 seconds I get one request sent for every keyup in the field... How can I make…
krasatos
  • 1,177
  • 3
  • 13
  • 26
7
votes
2 answers

Trigger Change event and keyup event in select element

I have some codes that should be run when a select element changes.I do it with jquery in this way: $("#myselect").change(function() { ....... }); But I want these codes run also when user change the select using keyword arrows. As i found the…
hd.
  • 17,596
  • 46
  • 115
  • 165
7
votes
1 answer

Javascript : onchange event does not fire when value is changed in onkeyup event

I have this simply code : I dont't know why the textbox value has changed when i press the key but the onchange event does…
hieund
  • 356
  • 1
  • 6
  • 16
7
votes
1 answer

Keyup not firing when keydown opens an alert

I have two event handlers, one for keydown and one for keyup. The keydown event handler triggers an alert message, but this prevents the keyup event from firing. You can see a very simple example here: http://jsfiddle.net/boblauer/jaGwT/ When…
Bob Lauer
  • 845
  • 1
  • 7
  • 19
6
votes
2 answers

adding
to the text-box when user press enter key in jquery

I want to add the
(newline) to text box when user clicks on the enter button. How can I achieve it in jquery onkeyup event. Can one show me the example or any good website implementing it. Thank you
sharath
  • 176
  • 1
  • 10
6
votes
3 answers

jquery: do this on keyup, unless the person is in a textarea or input

my script works but i don't understand how to make it NOT launch the functions when in a textarea/input and those keys are pressed. aka: launch the event when the user presses that key, unless the user is in a…
android.nick
  • 11,069
  • 23
  • 77
  • 112
6
votes
2 answers

keyup not working on Chrome on Android

I am using bootstrap typeahead. It depends on this jQuery code to work: el.on('keyup', doSomething() ) On Chrome on Windows it works fine. On Chrome on Android it doesn't. The keyup event is never fired. The element to which it is bound definitely…
user911625
6
votes
2 answers

Why are onkeyup events not firing in Javascript game

I have the beginnings of a 2d Javascript game - at the moment the player can drive a triangle around the screen using the arrow keys. The problem is that sometimes the triangle will get stuck rotating in one direction or moving forward until the…
RobotEyes
  • 4,929
  • 6
  • 42
  • 57
1
2
3
32 33