I have a list of parent check boxes with list of sub check boxes within each parent check box.
With parent check-box a data-info="category" attribute is attached and with child check-box a data-info="name" attribute is attached.
With check and uncheck of parent checkbox, list of sub checkboxes are visible and hidden respectively
What i want is that when i uncheck the parent checkbox, all subchkbx should also get unchecked. Only unchecked not for checked scenario.
Also, i want to access data-info attribute of checked checkbox. How can i get this attribute on check of a checkbox.
Please guys help me in this. Currently i am achieving this with the help of jquery.
Aucun commentaire:
Enregistrer un commentaire