0

I have three of this radio buttons:

<input type="radio" name="project" data-ng-model="vm.defaultProject" data-ng-value="projectUserConnection.project" />

An if I select one, I can not deselect it that all of the three are deselected. Is there a possibility to do this, so that if I select the selected radio button that it became unselected?

0

1 Answer 1

1

I hope you have set up radio buttons correctly.See here.

<label>
        <input type="radio" name="project"
               value="Some Value" ng-model="vm.defaultProject" />
        Radio 1
    </label>
    <label>
        <input type="radio" name="project"
               value="Some other value" ng-model="vm.defaultProject" />
        Radio 2
    ............
</label>
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.