JSFiddle - React, Tailwind, and code Playground

by Gerald Gillespie

HTML

<html>
<body>
    <div class="somedivs" id="somediv">hi</div><img src="http://cdn.baseballhq.com/sites/default/themes/bhq/css/images/bhqLogoL.png" />
    <div class="fields[custom_field_value0]" id="fields[custom_field_value0]">bye
    
        <p>this is a p
            <img src="http://cdn.baseballhq.com/sites/default/themes/bhq/css/images/bhqLogoL.png" />
        </p>
    this is outside the p</div>
</body></html>

JavaScript

var $j = jQuery.noConflict();
$j(document).ready(function() {
 //   $j('.somedivs').css('color', '#ffffff');
  //  $j('#fields\\[custom_field_value0\\]').Remove();
//   $j('div').find('p').fadeToggle().end().find('img').remove();
   $j('p').closest('div').fadeToggle().end().find('img').remove();

    // $j('p').find('img').remove();
});