In one form i have multiple check boxes and textboxes.
for ex: 1 row: "checkbox" Car "textbox" Red color 2 row: "checkbox" Car "textbox" Yellow color 3 row: "checkbox" Bicycle "textbox" Green color 4 row: "checkbox" Scooter "textbox" Red and white color 5 row: "checkbox" Bicycle "textbox" Black color
Now i select 2 checkboxs (1st row checkbox and 4th row checkbox). i want to pass the 1st row checkbox and textbox value (Car, Red color) and 4th row checkbox and textbox value(Scooter, Red and white color) pass into database. How? I didn't want to store the remining checkboxs and textboxs value. I want to store the selected rows checkbox and textbox value.
It's very very urgent work..... please help me.... Regards & Thanks, Susan
Vinod K Singh
posted 7 years ago
Browser will include only those checkboxes in the request which were selected. Unselected checkboxes are not part of the request. Also you can programmatically store the desired checkboxes only.