title: jQuery: find the previous sibling with a class name?
body: <p>I have a HTML code like this:</p>
  
  <pre><code>&lt;div class="buildExMain"&gt;
      Select An Option
          &lt;i class="fa fa-check-circle" aria-hidden="true"&gt;&lt;/i&gt;
          &lt;div class="buildExDrop"&gt;
              &lt;p class="pSelection"&gt;Number 1&lt;/p&gt;
              &lt;p class="pSelection"&gt;Number 2&lt;/p&gt;
          &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Now, I'm trying to <code>show();</code> the <code>.fa</code> element when a <code>.pSelection</code> is clicked on.</p>
  
  <p>I tried this jquery code with no luck:</p>
  
  <pre><code>$(document).on('click','.pSelection', function(e){
      //This doesn't work////
      $(this).prev(".fa").show();
  
      //doesn't work either///
      $(this).prevAll(".buildExMain.fa:first").show();
  });
  </code></pre>