Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

  1.  permalink
    I have a table which goes like:
    <table>
    <tr>
    <td id="">123456</td>
    </tr>
    </table>

    I have a javascript variable abc:
    <script language="javascript">
    var abc=6;
    </script>

    I want to assign the javascript variable to the id value of the td such that the generated HTML should lookleke this:
    <td id="6">123456</td>

    Please suggest.
Add your comments
    Username Password
  • Format comments as (Help)