lundi 28 mai 2018

How to Uncheck all below Checkboxs when one checkbox is Unchecked

I have a dynamic check-boxes which are already mark. When I click one out of it then all the below check-boxes should be unchecked and if re mark again all the above checkbox mark again. Is there anyone who can help me on this Please?

Thank you.

                @for (int i = 0; i < Model.transportDate.Count(); i++)
                {
                    <tr>
                        <td>
                            @Html.CheckBoxFor(Model => Model.transportDate[i].selection)
                        </td>
                        <td>
                            @Html.TextBoxFor(Model => Model.transportDate[i].Date)
                        </td>
                    </tr>
                }

Overview of question




Aucun commentaire:

Enregistrer un commentaire