title: How to pass a condition via Data Attribute to JS for validation
body: <p>Eng has requested that I allow them to enter special validation conditions to be passed to our Generic Validator via a data attribute such as: </p>
  
  <pre><code>data-clv_special_condition="$(this).val()=='X'"
  </code></pre>
  
  <p>on the JS side I would need to capture that data attribute and plug it into our validation such as:</p>
  
  <pre><code>$('[data-clv_special_condition]').each(function(){
      if($(this).data('clv_special_condition')){ 
          //Do something 
      })
  });
  </code></pre>
  
  <p>However as you can imagine something like this would not work. Can anyone offer up any solutions for passing a condition from data attribute to JS to be ran through validation? Thanks!</p>