I create an extension to automate actions on the page. Cannot simulate keyup.
The code is as follows:
$("span").click(function () { $('.basket-item-amount').val('1000'); $('.basket-item-amount').trigger('keyup'); $(".flat_button.basket-dobet").click(); }); It is absolutely identical for both Chrome and Firefox. The console also runs as it should, but when I run as an extension, the trigger ('keyup') does not work.
What are the options to get out of this situation? Actually, site scripts are tied up, and only keyup calls them.