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 ^^

Recommended Answers

All 8 Replies

It 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.

<table>
<tr onclick='alert(document.getElementById("row1").innerHTML)'><td id='row1'>your_text</td></tr>
</table>

This will do what you want. table and when you click it, it becomes editable.

http://trirand.com/blog/jqgrid/jqgrid.html

click on row editing | Using Events

sorry i forgot to wrap it in bb codes

<table>
<tr onclick='alert(document.getElementById("row1").innerHTML)'><td id='row1'>your_content_here</td></tr>
</table>

there's an edit function just so you know

i didn't see he ask for an edit functionality. peace (^_^)V

so you can edit your post and add code tags around what you already posted.

guys, i really appreciated all your help. it was great. now, is it possible if i want to get the value of that specific row??

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.