Good, maybe I'm doing a bit like a grand piano, but I'm trying to achieve, from a list that I think with many DIV, a very specific element.
Currently, what I am doing is this, but you do not recognize me:
var i = $('#listado_facturas div:nth-child(10)[data-visible="yes"]').data('item')===0?0:1;
To summarize, I do not know if I really understand what I want, I want to reach the DIV number 10 that contains a "Data-Visible" attribute equal to YES.
When I do the console.log, it does not recognize the element that I am trying to reach. And this is the only way I can think of. Because reaching it by ID is not possible for me, the position of the ID can change every time I do an operation.
I do not know if this can be done or I am making a terrible asshole. Any help will be very grateful. :)