SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Apr 2005
    Posts
    106
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Detecting an onClick event with a table cell

    I know how to show and hide div tags based on user events, however I do not know if I can detect a user clicking inside a table cell (<td>) or even within a <div> tag. I want to show an <input type='text'> element only when a user clicks within a table cell. Any feedback will be appreciated.

  2. #2
    SitePoint Guru
    Join Date
    Apr 2006
    Posts
    802
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    As long as the element is visible and not behind another element it can be the target (or srcElement) of mouse events.

  3. #3
    SitePoint Zealot
    Join Date
    Apr 2005
    Posts
    106
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the response. It is much appreciated.


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
  •