Reputation: 4242
i am trying to highlighted selected radio button using Attribute Binding but i am not getting result can some one help me please
input:default {
box-shadow: 0 0 1px 1px red;
}
<input type="radio" name="gender" value="male" [attr.default]="value=='male'" (click)="value='male'"> Male<br>
<input type="radio" name="gender" value="female" [attr.default]="value=='female'" (click)="value='female'"> Female<br>
<input type="radio" name="gender" value="other" [attr.default]="value=='others'" (click)="value='other'"> Other
Below my stackblitz link
https://stackblitz.com/edit/angular-648y1w?file=src/app/app.component.html
Upvotes: 2
Views: 317