title: jQuery find td with class name and change the text
body: <p>I'm trying to use jquery to find a text based on it's class name and change it. Basically I have this structure:</p>
  
  <pre><code>&lt;td class="walletBalance"&gt;0.0000 XBT&lt;/td&gt;
  </code></pre>
  
  <p>So, im trying:</p>
  
  <pre><code>$("tbody").find("tr").each(function() { //get all rows in table
  var ratingTd = $(this).find('td.walletBalance’);//Refers to TD element
  if (ratingTd.text() == “0.0000 XBT”) {
      ratingTd.text(’changed text’);
  }
  });
  </code></pre>
  
  <p>What im doing wrong?</p>
  
  <p><a href="https://i.stack.imgur.com/QQeea.png" rel="nofollow noreferrer">For more understanding html structure</a></p>
  
  <p><a href="https://i.stack.imgur.com/ovEBT.png" rel="nofollow noreferrer">Specifically what value i'm trying to change </a></p>
  
  <p>PS: Im using tampermonkey</p>
  
  <pre><code>    // ==UserScript==
  // @name         testingalarm
  // @namespace    http://tampermonkey.net/
  // @version      0.1
  // @description  try to take over the world!
  // @author       You
  // @match        https://www.hey
  // @grant        none
  // @require http://code.jquery.com/jquery-latest.js
  // ==/UserScript==
  
  (function() {
      'use strict';
  
      // Your code here...
      $("tbody").find("tr").each(function() {
    var ratingTd = $(this).find('td.walletBalance');
    if (ratingTd.text() == "0.0000 XBT") {
      ratingTd.text('changed text');
    }
  });
  })();
  </code></pre>
  
  <p>Btw, this alarm is working:</p>
  
  <pre><code>// ==UserScript==
  // @name         testingalarm
  // @namespace    http://tampermonkey.net/
  // @version      0.1
  // @description  try to take over the world!
  // @author       You
  // @match        https://www.some
  // @grant        none
  // @require http://code.jquery.com/jquery-latest.js
  // ==/UserScript==
  
  (function() {
      'use strict';
  
      // Your code here...
      $(document).ready(function() {
    alert('WINNING');
  });
  })();
  </code></pre>
  
  <p>PSS: after Manaren answer</p>
  
  <pre><code>// ==UserScript==
  // @name         aaaaa
  // @namespace    http://tampermonkey.net/
  // @version      0.1
  // @description  try to take over the world!
  // @author       You
  // @match        https://www.some
  // @grant        none
  // @require http://code.jquery.com/jquery-latest.js
  // ==/UserScript==
  
  (function() {
      'use strict';
  
      // Your code here...
      $("tbody tr td.walletBalance").each(
          function(){
              if ($(this).text() == "0.0000 XBT"){
                  $(this).text("changed text");
              }
          }
      );
  })();
  </code></pre>