0

Fill in the blanks to handle the keydown event on the input field and alert which key was pressed.

$( "input" ).___ (function(event) {alert(_____.___)});

20th May 2018, 9:54 AM
Abubakr Mahmoud Mohamed Ali
Abubakr Mahmoud Mohamed Ali - avatar
12 odpowiedzi
+ 3
my answer was .keydown and .event but i missed something
20th May 2018, 9:57 AM
Abubakr Mahmoud Mohamed Ali
Abubakr Mahmoud Mohamed Ali - avatar
+ 3
$ ("form"). on (" submit ", function() { // some code });
4th Mar 2021, 2:32 PM
Cesar Aramayo
Cesar Aramayo - avatar
+ 2
keydown,event,which
23rd Jul 2018, 6:16 PM
Raja Thamizharasan
Raja Thamizharasan - avatar
+ 1
$( "input" ).keydown(function(event) { alert(event. which); });
30th Nov 2018, 3:23 PM
Jayalakshmi @ Madhumitha
Jayalakshmi @ Madhumitha - avatar
+ 1
$( "input" ).keydown (function(event) { alert(event.which); }); //which key is used to know which event called
19th Jul 2019, 5:09 AM
Ashish kumar
Ashish kumar - avatar
+ 1
$( "input" ).keydown(function(event) { alert(event. which); }); This is one ans
11th Jul 2020, 5:27 AM
Faith Mundi
Faith Mundi - avatar
+ 1
Answer: $( "input" ).keydown(function(event) { alert(event. which); });
21st Nov 2020, 1:49 PM
Jason Chew
Jason Chew - avatar
+ 1
$( "input" ). keydown (function(event) { alert( event . which ); });
4th Dec 2020, 4:21 PM
El Maslohi Hassan
+ 1
keydown, event, which
9th Dec 2022, 10:28 AM
Ronit Zinzuvadiya
Ronit Zinzuvadiya - avatar
0
key.
20th May 2018, 10:17 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
0
$(“input”).keydown(function(e){ Alert(“key pressed”); } Or else Will use for “which” function...when we use this function it’ll alert which key we’re pressed....
27th May 2018, 8:15 AM
Mőhåň Ķűmæř
Mőhåň Ķűmæř - avatar
- 1
(event, which)
25th Jun 2018, 7:50 AM
osman kuecuek