title: how to add attribute with value in td tag with jquery
body: <p>I have one table that has 2 row and 3 column. I want add 2 attribute to any td that detect place it. (these attributes are <code>col</code> &amp; <code>row</code> that show column and row for any tds.)</p>
  
  <p>this is my code :</p>
  
  <pre><code>&lt;table id="tab"&gt;
    &lt;tr id="rows"&gt;
      &lt;td&gt;&lt;/td&gt;
      &lt;td&gt;&lt;/td&gt;
      &lt;td&gt;&lt;/td&gt;
    &lt;/tr&gt;
  
    &lt;tr id="rows" style="top:50px"&gt;
      &lt;td&gt;&lt;/td&gt;
      &lt;td&gt;&lt;/td&gt;
      &lt;td&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>and I want use loop that add 2 attribute in it any level for any td and at last I want to get this code but I cannot do it:</p>
  
  <pre><code>&lt;table id="tab"&gt;
    &lt;tr id="rows"&gt;
      &lt;td col="1" row="1"&gt;&lt;/td&gt;
      &lt;td col="2" row="1"&gt;&lt;/td&gt;
      &lt;td col="3" row="1"&gt;&lt;/td&gt;
    &lt;/tr&gt;
  
    &lt;tr id="rows" style="top:50px"&gt;
      &lt;td col="1" row="2"&gt;&lt;/td&gt;
      &lt;td col="2" row="2"&gt;&lt;/td&gt;
      &lt;td col="3" row="2"&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>