I want to iterate the Table using .childNodes, then find the <B> tag. My code doesn't work!
<p>I have a problem in my code. I want to get the b tag that has the style color silver using Javascript. I tried using the tagName === "B" but it didn't work. I figured that the B tags are not children of the rowData class. </p>

<pre><code>  &lt;tr class="rowData"&gt;
    &lt;td style="padding: 0pt;"&gt;
             &lt;table&gt;&lt;tr&gt;
       &lt;td&gt;
        &lt;b style="font-size: 15px; color: silver;"&gt;Mugging&lt;/b&gt;
        &lt;br /&gt;Payout: &lt;b style="color: green;"&gt;$200 - $300&lt;/b&gt;
        &lt;br /&gt;Experience: +1         &lt;/td&gt;

       &lt;td style="text-align: right;"&gt;
            &lt;/td&gt;
      &lt;/tr&gt;&lt;/table&gt;
     &lt;/td&gt;
     &lt;td style="padding: 0pt;"&gt;
      &lt;table&gt;&lt;tr&gt;
       &lt;td style="width: 100px;"&gt;
        &lt;b style="color: gray;"&gt;Required:&lt;/b&gt;

        &lt;br /&gt;Energy:&amp;nbsp;1         &lt;/td&gt;
       &lt;td style=""&gt;
            &lt;/td&gt;
      &lt;/tr&gt;&lt;/table&gt;
     &lt;/td&gt;

     &lt;/td&gt;
  &lt;/tr&gt;
</code></pre>

<p>I removed some part of it..</p>

<p>Here's some part of the Javascript code:</p>

<pre><code>var jobs = {};

jobs.scan = function() {
    var tagHolder = {};
    var availJobs = {};
    var jobContents = dom.get("app8743457343_content");
    var rData = dom.getElementsByClass("rowData", jobContents, "tr");
    for(var i = 0; i &lt; rData.length; i++) {
        var rChildren = rData[i].childNodes;
        for(var j=0; j&lt;rChildren.length; j++) {
            if(rChildren[j].tagName === 'B') {
                alert(rChildren[j]);
            }
        }
    }
}

jobs.scan();
</code></pre>

<p>When I started the script it didn't alert, or responded. Maybe I need to use something to like nextSibling? Please help me figure this out.. I want the b with the style color silver. The Mugging text</p>
