Skip to content
Advertisement

How to loop checkbox for each value in dropdown list in vuejs?

JavaScript
JavaScript

How to loop checkbox for each value in dropdown list in vuejs?

Basically i have a dropdown, where i can able to select list of cities available based on the state. So, Once i get the cities, i should be able to select multiple of them and display the number of selected cities.(by placing checkboxes for each value from city dropdown list, and display the number of selected cities)

Codesandbox link working

Advertisement

Answer

One way:

JavaScript
JavaScript
JavaScript
Advertisement