I write userscript in Tampermonkey for Avito.ru site. His task - when opening the product addition page, the script automatically selects the category and type of goods. The current code state is: `$ (document) .ready (function () {
//Бытовая электроника -> Товары для компьютера $('input[value="101"]').next().click(); //Аксессуары $('select[name="params[483]"] option:eq(11)').attr('selected', 'selected');});`
The essence of the problem: the category and subcategory is selected, but the drop-down list with the type of goods is not displayed. If you click "Continue", an error will pop up and a drop-down list will appear, the second part of the code in the script will work.
As I understand it - it loads dynamically when you click on a category by mouse, but for some reason it refuses to be loaded when clicked through JQuery. I use jQuery because it is more convenient for me.
Even if you do .click () on all three elements - the view is not loaded. See the picture.
Question: how to solve this problem? How to make the script itself choose the type of product immediately?