How do I add a standard html element to a cell?
How do I add a standard html element to a cell?
AverageGuy
Posts: 5Questions: 0Answers: 0
I'd like to build a table that has links embedded in the cell data for one column. The intent is to be able to display a table and have the user be able to click on a cell in a row and edit/view more details, etc. the data in that row. A clickable field would be OK also. I attempted to include a link in the json data, but it got stripped out somewhere along the way.
Thanks,
Jim.
Thanks,
Jim.
This discussion has been closed.
Replies
I'm adding a Checkbox inthe first Row like that:
[code]
oTable = $("#drinks").dataTable( {
"bPaginate": false,
"bRetrieve": true,
"sAjaxSource": "files/scripts/GetJSONDrinks.php",
"aoColumnDefs": [{
"fnRender": function ( oObj ) {
return \'\';
},
"aTargets": [ 0 ]}]
});
[/code]
But im a newbie so i dont know if that will help you. i got a Form tag around my table and then i can access the checked checkboxes via the .submit event.
Jim.