Что я делаю не так?
Код: Выделить всё
$(document).keyup(function (e) {
if ($(".input1").is(":focus") && (e.keyCode == 13)) {
// Do something
}
});
Подробнее здесь: https://stackoverflow.com/questions/706 ... nput-field
Код: Выделить всё
$(document).keyup(function (e) {
if ($(".input1").is(":focus") && (e.keyCode == 13)) {
// Do something
}
});