Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 0.41 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. jQuery selectors, selecting parent of div based on inner html
  2. <div id="faq-content">
  3.    <div class="faq-topic" >
  4.       <div id="faq-content-title">Top Questions</div>
  5.       <div class="faq-item"></div>
  6.    </div>
  7.    <div class="faq-topic">
  8.       <div id="faq-content-title">Returns</div>
  9.       <div class="faq-item"></div>
  10.    </div>
  11. </div>
  12.        
  13. $('.faq-content-title:contains("Returns")').parents('.faq-topic');