Answers for "jquery on key up"

3

jquery on enter key pressed

//jQuery detect user pressing enter
$(document).on('keypress',function(e) {
    if(e.which == 13) {
        alert('User pressed Enter!');
    }
});
Posted by: Guest on July-31-2019
1

check when keyup an input from a specific form jquery

var inputs = $('#formID').find('input[type="text"]');
inputs.keyup(function() {
   console.log($(this));
});
Posted by: Guest on June-24-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language