Form-submitting CheckBox alongside a Quantity TextBox within a WebGrid Column

Managem3nt

New Member
I have a WebGrid on my Razor-based site and now I would like to have a Checkbox and a Textbox inside a Column, and when I click on the Checkbox after entering a Quantity, I would like it to submit the form, so I can add that item to the database (I'm not really keen on AJAX for this right now, unless it'll be easier and better). But I just don't know how I should go about this.
m3HVm.png
Should I wrap each combo of Checkbox and Textbox in its own form, so there will be a form for every column that has a Checkbox? Or should I wrap the whole WebGrid div inside just 1 form and then determine which ones were checked on submission? I'm really not sure where to even start here.Any help will be much appreciated.
 
Back
Top