SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    May 2005
    Posts
    392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Setting value to a tag

    Does anybody know how to set a value to a tag through javascript function?

    For example in html we can say sometihng like

    ...
    <td>
    Example
    </td>
    ...

    How can I pass "Example" of any other string to <td> tag from javascript function? Thank you.

  2. #2
    SitePoint Addict
    Join Date
    May 2005
    Posts
    392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nevermind, i figure that out. I need to use innerHTML method for it.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •