I have a textbox in blazor
<input type="text" id="lblname" @bind="@value" />
At runtime I assigned textbox value as 1 through javascript.
document.getElementById("lblname").value = 1
It is displaying in a page.
However, I want to save the assigned textbox value to a variable. When I assign
id=@value
It always shows null value.
Iam not entering in textbox at runtime. Instead value is assigned. How to get the changed textbox value
What I have tried:
I have a textbox in blazor
<pre><input type="text" id="lblname" @bind="@value" />
At runtime I assigned textbox value as 1 through javascript.
document.getElementById("lblname").value = 1
It is displaying in a page.
However, I want to save the assigned textbox value to a variable. When I assign
id=@value
It always shows null value.
Iam not entering in textbox at runtime. Instead value is assigned. How to get the changed textbox value