I have a dynamically generated html table whose columns have id assigned dynamically. for ex:
   <td id="1">1</td>
    <td id="2">2</td>
     ....
     ....
   <td id="n">n</td>
in order to get the get value of a specific column I am using
        document.getElementById("#myvar").innerHTML or $("td#myvar").html where myvar is variable that contains search element such as   2 or 3 etc. But I dont get any results. If I direcly use a number for document.getElementById("#2").innerHTML , it works. Please advise what to do to get value where id of element is same as the variable declared??
 
     
     
     
     
     
    