title: How to check for attribute value
body: <p>Please advise me if I am using correct syntax here for checking if “aria-expanded” is true for a particular set of elements with css class “classname”:</p>
  
  <pre><code>    if ($(‘.classname’).hasAttribute('aria-expanded','true')) {  output here }
  </code></pre>