#109160
ivanpeevski
Participant

Hi Brandon,

 

There are a few different ways to capture the value of the input. For example, you can use two-way value binding:

<h3>@textValue</h3>
<Input @bind-Value=”@textValue” OnChange=”changeEvent”></Input>

@code{
string textValue = “”;
private void changeEvent(Event ev)
{
Console.WriteLine(textValue);

}
}

 

Best Regards,
Ivan Peevski
Smart UI Team
https://www.htmlelements.com/