title: Hide inline text in div using jQuery
body: <p>How can I hide the <code>inline</code> text within the <code>div</code> of class <code>.test</code> without hiding the <code>h1</code> element? This is a simplified example of a problem I'm having in a larger web application. </p>
  
  <p>Some other guidelines are that I can't wrap the text in a span tag and I want to keep all of the content in the div so I can't simply erase and add back everything I want. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function() {});</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div class="test"&gt;
    &lt;h1&gt;Hello World&lt;/h1&gt;
    "This is text"
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>