title: Disable element based on class
body: <p>I want to disable some tr's based on some condition, i.e. if class is present or not for that particular tr.</p>
  
  <pre><code>if (self.EmailDetailsList.length &lt;= 4) {
                      self.EmailDetailsList.push(data);
                      event.currentTarget.parentElement.parentElement.className = 'highlightRow';
                      self.isSelected(true);
                  }
                  else {
                      $("#addresslistId tr").prop('disabled', true);
                  }
  </code></pre>
  
  <p>Here if a tr which does not have class 'highlightRow' should be disabled, using jquery.
  Please suggest a nice approach</p>