Javascript Netbeans accessing a new class syntax
<p>I have a JSP file which includes a table.
In addition, I have a Javascript with a function called update, in which I want to update that table every time I get a new string. I don't know how to access the class I've created for every cell in the table.</p>

<p>singlePlayer.jsp Code:</p>

<pre><code>&lt;table border="1"&gt;
   &lt;%           
   int size=8;
   for (int i = 0; i &lt; size; i++) {
   out.println("&lt;tr&gt;");
   for (int j = 0; j &lt; size; j++) {
   out.println("&lt;td class=\"+i+j\"&gt;&lt;/td&gt;"); }   //creating class per cell
   out.println("&lt;/tr&gt;"); }  }%&gt;                  
   &lt;/table&gt;

   &lt;script&gt;                 
   function update(p) {
                    var MyMaze = p;
                    var size = 8;
  for (var i = 0; i &lt; size; i++) {
      for (var j = 0; j &lt; size; j++) {      
           $(.'i+j').text('*');} }  //cant access 'i+j' class 
   &lt;/script&gt;
</code></pre>

<p>question is, if I've created a class 'i+j' for ever cell in the table, how do I access it in my script?</p>