is it possible to have a clickable table wherein once you click that specific row, a dialog box will appear to display the entire row. could you help me with this one..thanks in advnce ^^
xuexue
15
Junior Poster
Recommended Answers
Jump to PostIt would require javascript but as for the basics I believe it would be something like the following.
<table> <tr onclick=javascript:showrow(1)><td></td><td id="1"></td></tr> <tr onclick=javascript:showrow(2)><td></td><td id="2"></td></tr>
Then you would use css to hide the rows and a custom javascript function to show the rows. Hope that helps.
Jump to Post<table>
<tr onclick='alert(document.getElementById("row1").innerHTML)'><td id='row1'>your_text</td></tr>
</table>
All 8 Replies
cwarn23
387
Occupation: Genius
Team Colleague
Featured Poster
vaultdweller123
32
Posting Pro
kireol
10
Posting Whiz
vaultdweller123
32
Posting Pro
kireol
10
Posting Whiz
vaultdweller123
32
Posting Pro
kireol
10
Posting Whiz
xuexue
15
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.