title: Editing table content using Javascript given value
body: <p>I need help to get started with inserting text into table using javascript. I am unable to touch the html code</p>
  <p>Portion of html code for the table :</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;table class="selection"&gt;  
  &lt;tr&gt;
  &lt;td&gt;&lt;div class='choices' value=0&gt;&lt;button class="btnclass" type="button"&gt;&lt;/button&gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td&gt;&lt;div class='choices' value=1&gt;&lt;button class="btnclass" type="button"&gt;&lt;/button&gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td&gt;&lt;div class='choices' value=2&gt;&lt;button class="btnclass" type="button"&gt;&lt;/button&gt;&lt;/div&gt;&lt;/td&gt;
  &lt;/tr&gt;
      
  &lt;tr&gt;
  &lt;td&gt;&lt;div class='choices' value=3&gt;&lt;button class="btnclass" type="button"&gt;&lt;/button&gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td&gt;&lt;div class='choices' value=4&gt;&lt;button class="btnclass" type="button"&gt;&lt;/button&gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td&gt;&lt;div class='choices' value=5&gt;&lt;button class="btnclass" type="button"&gt;&lt;/button&gt;&lt;/div&gt;&lt;/td&gt;
  &lt;/tr&gt;
      
  &lt;tr&gt;
  &lt;td&gt;&lt;div class='choices' value=6&gt;&lt;button class="btnclass" type="button"&gt;&lt;/button&gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td&gt;&lt;div class='choices' value=7&gt;&lt;button class="btnclass" type="button"&gt;&lt;/button&gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td&gt;&lt;div class='choices' value=8&gt;&lt;button class="btnclass" type="button"&gt;&lt;/button&gt;&lt;/div&gt;&lt;/td&gt; 
  &lt;tr&gt;
   
  &lt;/table&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>Total there are a table of 3 rows 3 columns, indicated by their value.</p>
  <p>Im supposed to assign a unique text for each unique value using javascript. For example, in row 1 column 1, i would like the text to be 'apple', row 2 column 2 as 'orange'. Im unable to modify the code above as they are in html. How do i go about it</p>
  <p>This html was given as a question so im unable to explain the rationale of the codes as well. But the html are fixed and cant be modified</p>