0

I have made a function outside the event listener:

function nextSequence(){
  Some something here
}

Then I had an event listener:

$(document).keydown( 

after this I used to make a nameless function earlier but now I want to input a function that has been earlier made. So how do I do it

I tried

$(document).keydown(nextSequence ())

But nothing happened

mplungjan
  • 169,008
  • 28
  • 173
  • 236

0 Answers0