Given n html elements with data attributes such :
<div class="tpl" data-points="2"></div>
<div class="tpl" data-points="5"></div>
<div class="tpl" data-points="10"></div>
<div class="tpl" data-points="5"></div>
Given a JS variable such as :
foo=10;
How to select the element with data-points==foo;
? (which currently is 10
but may change)
What is the suitable selector ?