I need to select elements by data attribute name AND data attribute value.
Something like (but obviously, it doesn't work)
for(var i=0; i<x.length; i++){
var y = $('.my-class').attr('data-id', i); //trying to select here
y.html('input' + i);
}
Have no idea how to achieve this, please help! :)