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
4
votes
4 answers

execute keyup once

I'm trying to load a gif loader when I start to type in a textbox. I'm appending it to the div that contains the textbox on keyup. The problem I have is that the loader is appended every time I type a letter while I would like to append it only once…
Mauro74
  • 4,686
  • 15
  • 58
  • 80
3
votes
3 answers

Create a
when you press Enter

I have made a textarea form where you can change your description and like in my previus question I asked if there was any way of having banned tags. But now is there any way of when you press Enter that a
will be set in the textarea so that…
ZyteX
  • 239
  • 2
  • 5
  • 13
3
votes
3 answers

JavaScript onKeyUp time delay

I need some help with a JavaScript function that I call onKeyUp, it is a Ajax function but every time I write any character it calls the function and it slow the page performance and it check every time, it is an user check with the database. I…
apz2000
  • 132
  • 6
  • 14
3
votes
2 answers

Using Javascript, how can I detect a keypress event but NOT when the user is typing in a form field?

On my Web site, I want to open my search form dynamically when a user hits the question mark key. I can do that using the following code: document.onkeyup = checkKey; function checkKey(evt) { evt = evt || window.event; if (evt.keyCode ==…
Tantalus
  • 397
  • 1
  • 3
  • 11
3
votes
1 answer

jquery keyup ignore non-changing characters

I'm trying to get an event to fire whenever a contenteditable div is changed using keyup. Unfortunately it's also catching things like moving the caret with the arrow keys. I only want it to spot actual changes though. I read this question, which…
Stephen Belanger
  • 6,251
  • 11
  • 45
  • 49
3
votes
3 answers

keydown (repetition) breaks when keyup event (for ANOTHER key) is fired

This is a bit of a weird one so I figure I'm either missing something obvious or this is a flaw with how these events are implemented in browsers. Let me first summarize an example scenario this issue comes up with before providing an isolated…
SikoSoft
  • 584
  • 1
  • 7
  • 13
3
votes
2 answers

Display previous input on keyup from user, in Python?

I have a simple Python program which uses a read-eval-print loop to read user input via raw_input and then print things to the screen. I would like to keep a history of previous inputs and cycle through them when the user presses keyup or keydown,…
Kevin Burke
  • 61,194
  • 76
  • 188
  • 305
3
votes
3 answers

How to validate onkeyup event without again and again sending post request to route in larravel

validate Activity function with Ajax code $(document).on('keyup','#activity_name',function () { var error_activity = ''; var activity = $('#activity_name').val(); var _token = $('input[name="_token"]').val(); …
Umer Rasheed
  • 138
  • 2
  • 13
3
votes
1 answer

setTimeout does not wait for specified number of milliseconds

I would like to have a form triggering submit after a few seconds of inactivity (using the onKeyup event). My code is as follows: …
Timothée HENRY
  • 14,294
  • 21
  • 96
  • 136
3
votes
1 answer

js: load same js code with different parameters

I have two html password tags like that: My objective is…
Kallel Omar
  • 1,208
  • 2
  • 17
  • 51
3
votes
2 answers

Get the ENTER click event of input when type="number"

In the HTML input text, using the onKeyUp method I am able to catch the click event on enter button when input type="text" . But the same event is not able to fire if the input type="number". HTML
new_coder
  • 67
  • 10
3
votes
2 answers

How to use onkeyup in javascript to add text to a div that isn't a textbox?

Let me start off saying that I am new to javascript. I am trying to change a div's content to whatever letter I type in. So if I press "p" anywhere on the page, the div text will add that letter. For example: