title: Removing div with no class and id without removing its children
body: <p>I am trying to remove div with no id and class <code>&lt;div&gt;</code> without removing its children.</p>
  <pre><code>&lt;div class=&quot;struc&quot;&gt;
  ..
  ..
  &lt;div class=&quot;required-field half-control form-group has-feedback&quot;&gt;
    &lt;label for=&quot;fxb_d56c971 class=&quot; control-label&quot;&gt;First Name&lt;/label&gt;
    &lt;input id=&quot;fxb_d56c971a class=&quot;design_textfield&quot; type=&quot;text&quot; value=&quot;&quot; placeholder=&quot;First Name*&quot;&gt;
    &lt;div&gt;
      &lt;span class=&quot;field-validation-error&quot; data-valmsg-replace=&quot;true&quot;&gt;
        &lt;span id=&quot;fxb_d56c971a&quot; class=&quot;&quot;&gt;First Name is required.&lt;/span&gt;
      &lt;/span&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  ..
  ..
  &lt;/div&gt; 
  </code></pre>
  <p>I tried the following code which is not working</p>
  <pre><code>        var findExtraDiv = $(el).prev('label').parent();
          if ($(findExtraDiv).prop(&quot;tagName&quot;).toLowerCase() == 'div') {
              if (($(findExtraDiv).id == null) &amp;&amp; ($(findExtraDiv).attr(&quot;class&quot;) == &quot;&quot;)) {
                  var cnt = $(findExtraDiv).contents();
                  $(findExtraDiv).replaceWith(cnt);
              }
          }
  </code></pre>
  <p>I can find the correct div but unable to remove the parent div only</p>
  <p>This is what I want</p>
  <pre><code>&lt;div class=&quot;struc&quot;&gt;
  ...    
    &lt;div class=&quot;required-field half-control form-group has-feedback&quot;&gt;
      &lt;label for=&quot;fxb_d56c971 class=&quot; control-label&quot;&gt;First Name&lt;/label&gt;
      &lt;input id=&quot;fxb_d56c971a class=&quot; design_textfield&quot; type=&quot;text&quot; value=&quot;&quot; placeholder=&quot;First Name*&quot;&gt;
      &lt;span class=&quot;field-validation-error&quot; data-valmsg-replace=&quot;true&quot;&gt;
        &lt;span id=&quot;fxb_d56c971a&quot; class=&quot;&quot;&gt;First Name is required.&lt;/span&gt;
      &lt;/span&gt;
    &lt;/div&gt;
  ...
  &lt;/div&gt;
  </code></pre>
  <p>Any suggestions or help would be appreciated.</p>
  <p>Thanks in advance</p>