Coding Example:-
'<td>' + item.Message + ' <input type="button" class="btn btn-info" id="' + item.LogID + '" onclick="Clicked(this);" value="View More" /> <p> ' + item.FormattedMessage + ' </p></td></tr>'
This code snippet represents a button inside a table cell.
Functional Jquery Code:-
function Clicked(e)
{
var SelectedID = e.id;
$("p").toggle();
};
When the button is clicked, only the selected column should be displayed while rest should be hidden. However, currently all columns are either shown or hidden on button click.