I am using MVC3 on my project.
I have a view with tables and a textarea. Each row have "Name" Column and a ID that is not displayed in the rows.
Also I have:
@Html.HiddenFor(model => model.SelectedQuestions)
When a user clicks on a row I want that my SelectedQuestions that is a string gets filled by the ID of the row.
This is inside my controller for my tables:
foreach (var player in playerGroupedByTeam)
{
var playerViewModel = new playerViewModel();
playerViewModel.PlayerId = player.Id;
playerViewModel.PlayerName = Player.PlayerName;
TeamPlayer.Player.Add(playerViewModel);
}
Any suggestions how I can solve this with jquery?
Thanks in advance!