onkeyup Questions

9

Solved

I'm building a Sql query builder and would like to change the text color of a word in a textarea when the user types in words like SELECT, FROM, WHERE. I've searched around a bit and beyond this (h...
Unhallowed asked 10/5, 2016 at 12:49

3

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 y...
Hankhanke asked 18/5, 2014 at 0:11

9

The following works great when the enter key is released. What other options are available for the keyup in addition to keyup.enter? <input #inputstring (keyup.enter)="doSomething(inputstring.v...
Unorthodox asked 22/8, 2015 at 12:3

26

Solved

I want to count characters in a textarea, so I just made: <textarea id="field" onkeyup="countChar(this)"></textarea> function countChar(val){ var len = val.value.length; if (len &gt...
Rosemaria asked 20/3, 2011 at 19:58

7

Solved

I'm new to Android development and I can't seem to find a good guide on how to use an onKeyUp listener. In my app, I have a big EditText, when someone presses and releases a key in that EditText I ...
Coadjutor asked 18/9, 2010 at 9:47

3

Solved

Trying to implement a shortcut key combination for Command+S to save a form. I've read this - https://angular.io/guide/user-input, but it does not say anything about meta or command. Tried surrou...

6

Solved

I was wondering how you can do .keyup() and .click() for the same #id? i.e. essentially I want to validate the #id when both the user attempts to hit enter or hits the #search button. Thanks al...
Colby asked 3/5, 2011 at 14:38

2

Solved

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 rota...
Liver asked 27/6, 2012 at 12:0

1

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 t...
Antione asked 14/1, 2019 at 6:39

7

Solved

I have a JS file for my HTML web page. I want to have 4 things to check. If they hit a number, 1-4 on the keypad, it takes them to a specified url. The script works, but only if I have one. When ...
Photo asked 27/9, 2018 at 6:26

4

Solved

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 ar...
Carpometacarpus asked 12/7, 2018 at 1:25

3

Solved

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 tha...
Anjelicaanjou asked 9/4, 2011 at 6:29

3

Solved

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(...
Florrie asked 15/10, 2015 at 15:46

3

Solved

I have read jQuery Event Keypress: Which key was pressed? and How can i check if key is pressed during click event with jquery? However my question is if you can get the same key event for all bro...
Concealment asked 30/9, 2010 at 19:36

2

Solved

I've just upgraded my app to use the newly released v22.1.0 AppCompat and now onKeyDown and onKeyUp are not triggered when menu key is pressed. The other keys correctly trigger onKeyDown and onKeyU...
Snipes asked 24/4, 2015 at 16:4

2

In my activity the action bar shows only the left arrow and the title of the activity. When I press the left arrow the activity goes back to the previous activity, but no event is registered in th...
Mayonnaise asked 6/8, 2015 at 23:15

5

Solved

I'm using the rottentomatoes movie API in conjunction with twitter's typeahead plugin using bootstrap 2.0. I've been able to integerate the API but the issue I'm having is that after every keyup ev...
Doubleripper asked 1/4, 2012 at 17:11

1

Solved

I have a basic form with a jquery validation bound to it. HTML : <form id="form-subscribe" method="post"> <div class="register_pane_content"> <label>Nom</label> <in...
Ecto asked 23/1, 2015 at 13:56

2

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 e...
Forkey asked 24/9, 2013 at 14:58

4

When handling key[Up|Down|Press] events, should I use .which or .keyCode? Can I have some example code for handling the three keyboard events in jQuery? Can you do it without jQuery? I want it to w...
Florin asked 25/8, 2010 at 17:43

3

Solved

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 c...
Reciprocation asked 15/10, 2011 at 23:37

2

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 ne...
Enrica asked 31/7, 2013 at 15:2

6

Solved

I have a single form field and I need to be able to detect when the field changes and execute some additional code using the new value of the field. I only want to execute the code if the key pushe...
Ludwick asked 19/1, 2010 at 20:28

1

Solved

I have this simply code : <body> <input type="text" onkeyup="this.value = (new Date()).getSeconds()" onchange="alert(1)" /> </body> I dont't know why the textbox valu...
Bullyboy asked 23/2, 2013 at 4:9

1

Solved

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...
Conduction asked 27/11, 2012 at 21:20

© 2022 - 2024 — McMap. All rights reserved.