js queryselector data attribute code example
Example 1: javascript select element with attribute
document.querySelectorAll('[attrname="value"]');
Example 2: queryselector data attribute
document.querySelectorAll(`[data-name*="funnel-chart-percent"]`)
Example 3: javascript queryselector data attribute
document.querySelector(`[data-price="50"]`)
Example 4: queryselectorall in javascript to get data attribute value
//javascript get html data attribute