title: Replacing content in Jquery with If / Else condition
body: <p>Hi I have a table which has some cells in, one cell has a 0 in so I want to change that to a No, the other has a 1 in so I want to change that to a Yes but I cannot seem to get it working, here is what I have thus far:</p>
  
  <pre><code>if ($('.fsAction td:eq(2)').text('0')) {
  
      $('.fsAction td:eq(2)').html('No');
  
  } elseif ($('.fsAction td:eq(2)').text('1')) {
  
      $('.fsAction td:eq(2)').html('Yes');
  
  }
  </code></pre>
  
  <p>Am I missing something? I can't use val as these aren't form areas</p>