Hi,
I am trying to expand and collapse rows on a button click however when I am clicking a button it is expanding and collapsing all the rows. Here is my code , I am new can anybody help.
@model IEnumerable
@{
ViewBag.Title = "Index1";
var message1 = ViewBag.Message;
var records = ViewBag.records;
}
View Logs
Log ID | Date Added | Level | Document ID | Message |
|---|---|---|---|---|
@Html.DisplayFor(modelItem => item.logId) | @Html.DisplayFor(modelItem => item.dateAdded) | @Html.DisplayFor(modelItem => item.level) | @Html.DisplayFor(modelItem => item.documentId) | @Html.DisplayFor(modelItem => item.message) |
@Html.DisplayFor(modelItem => item.message3) | ||||
$(document).ready(function () {
$(".AddNewRecord").each(function () {
$(".AddNewRecord").hide();
});
});
2 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Gunjan MananPosted Aug 26, 2016, 9:20 AM
Midhun TpPosted Aug 25, 2016, 4:54 AM