It is necessary to somehow simulate a click on a specific element on the site https://cs.money/ (in the inventory # div div). The problem is that when you try to "click" on something in the console, it writes "hidden" and the click does not work. Tried to do so:

$('#inventory_bot div')[0].click()

The problem seems to be not in jQuery, nothing changes on pure JS

    2 answers 2

    Something not noticed on the patient jQuery.

    Feedl - https://jsfiddle.net/wodzmopc/

    Another moment. Select div. With your selector, all children are selected, plus all nested children. To select only the first nesting you need $('#inventory_bot > div')

      jQuery .click() is an event listener and not a call to it. A click call is made via .trigger('click') , but this will only work if the click event is .trigger('click') to the object, for example, to go through the html link it will not work.

      • That's not the problem, with .trigger('click') nothing changes - Andrew Kasyanov
      • one
        According to the documentation - .click () without parameters is a call to the event. - Deliaz
      • @Deliaz, yes, it did not occur to me, and this does not cancel the second part of the answer - Artem Gorlachev
      • Everything he correctly calls. - Qwertiy