javascript add keypress (enter) to on()function as event listenner

I have JS cript

$(".cartItem-discount").on('focusout', '.cartItemPromoCode', function(){    ..... }

how can i fire event on focusout + keypress 13 (enter)


Source: jquery

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.