I have a list of items and I would like to delete items that are checked in a list of checkboxes.
I can't use something like CheckboxList
since I'm using Grid.Mvc
to display my lines. That is why I create checkboxes in each line with column.add("<input type="checkbox".....>);
.
Every checkbox has its own ID:
<input type="checkbox" id="3">
<input type="checkbox" id="4">...
I would like to know how to pass all checked checkbox IDs to the controller (from there I will perform delete operations). How can I post an array of checked IDs from my form to my controller action with one button press?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…