Pressing enter key in order to use pagination with a textbox

Pressing enter key in order to use pagination with a textbox

clde22clde22 Posts: 3Questions: 2Answers: 0

Hi,

I have succesfully implemented the pagination with textbox but I would like to allow the user to first enter a page number and then to press the enter key. By default, instatly the user is taken to the page but, as stated above, I would like to allow to enter first a number and the jump to the page by using the enter key. Any ideas on how to do this?

Thanks!

Answers

  • clde22clde22 Posts: 3Questions: 2Answers: 0

    Got it working by adding this line of code
    if (e.which === 13) fnCallbackDraw(oSettings);

This discussion has been closed.