title: how to auto delete content using JavaScript or jQuery
body: <p>I have an image included with an img tag in my html. It is inside of a div with the class "image". Inside that div is another div with the class of "caption". That "caption" div contains a paragraph. </p>
  
  <p>How can I delete the paragraph in the "caption" div and delete the "caption" div itself using javascript or jQuery?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>/* Script to delete the paragraph and caption div. */
  
  $(".image img").each(function() {
      var $this = $(this),
          getClass = $this.attr('img')
      splitClass = $this.prop('id').split("-")
      if (splitClass[1] &lt;= 20) {
          $this.attr("src", "http://lorempicsum.com/futurama/350/200/1");
  
      } else if (splitClass[1] &gt;= 40) {
          $this.attr("src", "http://www.top13.net/wp-content/uploads/2014/11/4-small-flowers.jpg");
  
      } else {
          $this.attr("src", "http://www.top13.net/wp-content/uploads/2014/11/4-small-flowers.jpg");
      }
  });</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="image"&gt;
   &lt;img id="img-1" src="http://www.top13.net/wp-content/uploads/2014/11/4-small-flowers.jpg" /&gt;
   &lt;div class="caption"&gt;
    &lt;p&gt;DELETE THIS TEXT!&lt;/p&gt;
   &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="image"&gt;
   &lt;img id="img-2" src="http://www.top13.net/wp-content/uploads/2014/11/4-small-flowers.jpg" /&gt;
   &lt;div class="caption"&gt;
    &lt;p&gt;DELETE THIS TEXT!&lt;/p&gt;
   &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Also, how can I use jQuery offline? Do I have to download it? How do I do that?<br>
  Thank you.</p>