Skip to content Skip to sidebar Skip to footer

Can Javascript Simulate "keyup" Programmatically?

I have a sale page with a coupon text field. For my influencers campaign, I create a new coupon for each new influencer. As I want to make their life easy, I code some javascript t

Solution 1:

after the code that fills the coupon just trigger the keyup event manually:

$('#coupon').keyup();

Post a Comment for "Can Javascript Simulate "keyup" Programmatically?"