I want to change the value of a textbox at runtime.
I have this JavaScript function, which returns a textbox value:
function getValue(str) {
var textboxValue = document.getElementById(str).value;
return textboxValue;
}
This is my link:
wg.Column(
header: " add ", format: @<text>
<a href="@Url.Action("updateOrder", "MyController", new { VaraId = item.id, pris = // Here I want to call function getValue("pris") }) ">
ADD NEW
</a>
</text>)
))