Get the text outside a DIV element with jQuery
<p>I'm trying to access a page and get the value from this page.</p>

<p><strong>First I don't have access to this page so I can't do any modification on the code, that's the problem because it doesn't look coded properly.</strong></p>

<p>Please find an example (index.html) of the page (source)</p>

<p>I access this page with an ajax get method.</p>

<pre><code>&lt;div id="box" style="background-color:#000000; margin:0px;"&gt;
    &lt;b&gt;
        &lt;big&gt;
            &lt;span style="color:#00BB77;"&gt;Tue, 02-08-2016&lt;/span&gt;
        &lt;/big&gt;
    &lt;/b&gt;
&lt;/div&gt;
MobApp iOS.A in C04
&lt;br&gt;
    09:00 am-11:00 am
&lt;br&gt;
&lt;b&gt;
    &lt;big&gt;&lt;/big&gt;
&lt;/b&gt;
&lt;br&gt;
    MobApp Andr .A in C12
&lt;br&gt;
    01:30 pm-03:30 pm
&lt;br&gt;
&lt;b&gt;
    &lt;big&gt;&lt;/big&gt;
&lt;/b&gt;
&lt;br&gt;
&lt;div id="box" style="background-color:#000000; margin:0px;"&gt;
    &lt;b&gt;
        &lt;big&gt;
            &lt;span style="color:#00BB77;"&gt;Wed, 03-08-2016&lt;/span&gt;
        &lt;/big&gt;
    &lt;/b&gt;
&lt;/div&gt;
    Adv. Studio 1.A in C11
&lt;br&gt;
    01:30 pm-03:30 pm
&lt;br&gt;
&lt;b&gt;
    &lt;big&gt;&lt;/big&gt;
&lt;/b&gt;
&lt;br&gt;
&lt;div id="box" style="background-color:#000000; margin:0px;"&gt;
    .....etc....
</code></pre>

<p>I already wrote a sample of a code to get the value inside the span (the date) with:</p>

<pre><code>$.ajax({
   url: 'http://www.thewebsite.com/index.html',
   type: 'GET',
   success: function(res) {
      var data = $.parseHTML(res);
      $(data).find('#box').each(function() {
          alert($(this).find('span').html());
      });
   }
 });
</code></pre>

<p>And it works I get : 
Tue, 02-08-2016
Wed, 03-08-2016 etc...</p>

<p>I would like now to get what's after the <code>&lt;/div&gt;</code> and the <code>&lt;br&gt;</code> (The subject) and the (time)</p>

<p>As you can see sometimes it can be only one subject per day or more.</p>

<p>I know it would have been much easier if everything would have been inside proper div element but they coded their website long time ago and they won't change that..  </p>

<p>I tried to get some of the value with next() or nextSibling.nodeValue() but without success.</p>

<p>So thanks in advance for a tip or a solution.</p>

<p>Cheers</p>