title: How to get tables which are after specific title
body: <p>I have an <code>html</code> structure like this on a website, and I'm writing a script (<code>js</code> on Tampermonkey) which needs to get back <strong>the tables</strong> which are under <em>"On way go"</em> but the ones that are under <em>"On way back"</em> so I don't know how I can achieve that with a smart way</p>
  
  <p>I've code to show because I've idea for this, maybe there is some jquery selector that would help me bu I don't know all, and haven't find in the doc</p>
  
  <p>It's only composed of 2 <code>&lt;h4&gt;</code> and then it can have between 0 and x table, no <code>id</code> exists except the span at top, and no distinguishing sign between the tables</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;span id="idid"&gt;
  
            &lt;h4 class="spacer"&gt;On way go :&lt;/h4&gt;
            &lt;table class="traders" cellpadding="1" cellspacing="1"&gt; &lt;!-- need this --&gt;
               &lt;thead&gt;&lt;!-- --&gt;&lt;/thead&gt;
               &lt;tbody&gt;&lt;!-- --&gt;&lt;/tbody&gt;
           &lt;/table&gt; 
            &lt;table class="traders" cellpadding="1" cellspacing="1"&gt; &lt;!-- need this --&gt;
               &lt;thead&gt;&lt;!-- --&gt;&lt;/thead&gt;
               &lt;tbody&gt;&lt;!-- --&gt;&lt;/tbody&gt;
           &lt;/table&gt; 
            
            &lt;h4 class="spacer"&gt;On way back&lt;/h4&gt;
            &lt;table class="traders" cellpadding="1" cellspacing="1"&gt; &lt;!-- not this --&gt;
               &lt;thead&gt;&lt;!-- --&gt;&lt;/thead&gt;
               &lt;tbody&gt;&lt;!-- --&gt;&lt;/tbody&gt;
           &lt;/table&gt; 
           &lt;table class="traders" cellpadding="1" cellspacing="1"&gt; &lt;!-- not this --&gt;
               &lt;thead&gt;&lt;!-- --&gt;&lt;/thead&gt;
               &lt;tbody&gt;&lt;!-- --&gt;&lt;/tbody&gt;
           &lt;/table&gt; 
      &lt;/span&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Tip : not my website, no control on structure, I have to work with that</p>