document queryselector based on 2 attributes code example
Example: queryselector multiple attributes
var ele = document.querySelector('class[attr=something][attr2=somtethingelse]');
var ele = document.querySelector('class[attr=something][attr2=somtethingelse]');