atributo de dados de queryselector de javascript
document.querySelector(`[data-price="50"]`)
Obedient Oyster
document.querySelector(`[data-price="50"]`)
<!DOCTYPE html>
<html>
<head></head>
<body>
<p data-foo="0"></p>
<h6 data-foo="1"></h6>
<script>
var a = document.querySelectorAll('[data-foo]');
for (var i in a) if (a.hasOwnProperty(i)) {
alert(a[i].getAttribute('data-foo'));
}
</script>
</body>
</html>
document.querySelectorAll(`[data-name*="funnel-chart-percent"]`)
//javascript get html data attribute