SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2006
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    calling hidden value in table cell

    hi.
    i have a table and diffrent information in every single cell.
    but information is hidden by <a> tags. for example
    <td><a id=a1 style="visiblitiy:hidden">9</a></td>
    when onclick on a diffrent table i call that cells value to this cell. but the i need to check if the value is same with my hidden number. can some one help please

  2. #2
    SitePoint Wizard
    Join Date
    Mar 2001
    Posts
    3,537
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    if(this.firstChild.nodeValue == 
          document.getElementById("a1").firstChild.nodeValue)
    {
        //do something
    }


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
  •