hello,
I used the following code and I want get value of hdn1(hidden field)
var grid = new WebGrid(Model, rowsPerPage: 15, ajaxUpdateContainerId: "myGrid");
@grid.GetHtml(tableStyle: "clrPreview", columns: grid.Columns(
grid.Column("CityName", "City", canSort:false),
grid.Column("HotelName", "Hotel", canSort: false),
grid.Column("HotelCategoryName", "Category", canSort: false),
grid.Column("GitRangeStartFrom", "Git Range Start From", canSort: false),
grid.Column(columnName: "Action", canSort: false,
format: @<text><input type="hidden" id="hdn1" value='@item.HotelId' />
@Html.ActionLink("Edit", "Edit", new { id = item.HotelId }, new { rowid = item.HotelId })
@* | @Html.ActionLink("Delete", "Delete", new { id = item.HotelId })*@
</text>)
I want to get hidden field value by jquery