title: Get CSS class name in JavaScript
body: <p>I am facing a problem to get the class name from a string in JavaScript.</p>
  
  <p>For example:</p>
  
  <pre><code>var ddd="&lt;p class='Box_title'&gt;Heading text here...&lt;/p&gt;";
  </code></pre>
  
  <p>Now from that I want to get p tag's class name.</p>