I have a checkbox in a form and I\'d like it to work according to following scenario:
totalCost
)
I know this seems like noob answer but I'm putting it here so that it can help others in the future.
Suppose you are building a table with a foreach loop. And at the same time adding checkboxes at the end.
=$criteria?>
=$indicator?>
=$target?>
>
You place a button below the table with a hidden input:
You can write your script like so:
The ids of your checkboxes will be submitted as a string "1,2" within the result variable. You can then break it up at the controller level however you want.