How to enable click on a td with....
-
Hai i would like to know how could i provide single(or double) click event to a td inside a table.. I know that onclik="SomeFunction();" would do that. But my situation is that td is of fixed height and width If no text is there, no clik is needed.if it has, say a single character(say "a"), then the user should be able to click there inside the td to pop up a window.What i found that i am unable to click and produce the corresponding event for the td by clicking anywhere except where text is situated. Means if i click on the text, the event works. And if i click anywhere else, it wont...Any solution? :confused:
-
Hai i would like to know how could i provide single(or double) click event to a td inside a table.. I know that onclik="SomeFunction();" would do that. But my situation is that td is of fixed height and width If no text is there, no clik is needed.if it has, say a single character(say "a"), then the user should be able to click there inside the td to pop up a window.What i found that i am unable to click and produce the corresponding event for the td by clicking anywhere except where text is situated. Means if i click on the text, the event works. And if i click anywhere else, it wont...Any solution? :confused:
use a div tag to surround your text and add onclick functionality to that div tag. that should work. :):)
Thanks & Regards Pete