i am trying to highlighted selected radio button using Attribute Binding but i am not getting result can some one help me please
css
input:default {
box-shadow: 0 0 1px 1px red;
}
html
<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
but i am not getting result- So what is the problem? you do get 3 radio buttons, which is selectable.