To check the checkbox, use the textbox input event to get the entered text, and based on the text enable or disable it. In the following example, if the entered text is “check”, using the @bind attribute you can enable the checkbox.
<input @oninput="@((args) => { this.isCheck = ((string)args.Value == "check") ? true : false; })" /> <br /> <input type="checkbox" @bind="@this.isCheck" /> @code { private bool isCheck { get; set; } }
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
To check the checkbox, use the textbox input event to get the entered text, and based on the text enable or disable it. In the following example, if the entered text is “check”, using the @bind attribute you can enable the checkbox.
need an explanation for this answer? contact us directly to get an explanation for this answer