I have a dropdown list and few checkboxes. What is the best way to refresh the state (checked or unchecked) based on the selected option on the dropdown ?
For example, the checkboxes are few vehicles.
- If I select "Cars" in the dropdown, only the checkboxes with value as any Car will get checked and rest will get unchecked.
- If I select "Bikes" in the dropdown, the state of checkboxes gets refreshed and only the checkboxes with value as any Bike will get checked and rest will get unchecked.
Aucun commentaire:
Enregistrer un commentaire