title: Jquery to add class in H1 tag in div
body: <p>Trying to add class H1 tag inside div tag </p>
  
  <pre><code>function MatchReplace(content)
                {  
                    var input = content;
                    **$j('.wmd-preview').children().addClass('overridedefault');
  
   input = content.replace(/\&lt;h1&gt;/gi, "&lt;h1 class='overridedefault'&gt;");**
  }
  </code></pre>
  
  <p>Tried both children() and add class but it's not added.
  please let me know if am missing something here</p>