Trigger Click Not Working
Edit: Thank you so much for all the effort, got all my code running now! I want to trigger a click on https://shop.adidas.ae/en/stan-smith-shoes/S82255.html (to make a shoe bot). W
Solution 1:
The code works properly, but the "click" event triggered programmatically will not open the select
option list.
See Is it possible to use JS to open an HTML select to show its option list?
You can test that it works by adding your own onclick
event for that element and then triggering the click
event.
Solution 2:
Update
setTimeout(function () {
$('select.product-type.js-size-type').trigger('click');
}, 1000);
with
setTimeout(function () {
$('select .product-type.js-size-type').trigger('click');
}, 1000);
Post a Comment for "Trigger Click Not Working"