0
Fill in the blanks to handle the keydown event on the input field and alert which key was pressed.
$( "input" ).___ (function(event) {alert(_____.___)});
12 ответов
+ 3
my answer was
.keydown
and
.event
but i missed something
+ 3
$
("form").
on
("
submit
", function() {
// some code
});
+ 2
keydown,event,which
+ 1
$( "input" ).keydown(function(event) {
alert(event. which);
});
+ 1
$( "input" ).keydown
(function(event) {
alert(event.which);
});
//which key is used to know which event called
+ 1
$( "input" ).keydown(function(event) {
alert(event. which);
});
This is one ans
+ 1
Answer:
$( "input" ).keydown(function(event) {
alert(event. which);
});
+ 1
$( "input" ).
keydown
(function(event) {
alert(
event
.
which
);
});
+ 1
keydown, event, which
0
key.
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....
- 1
(event, which)