//its in ajax success
document.getElementById('koeff').innerHTML = elements.total;//type string
Posting form:
@using (Html.BeginForm("Index", "Power", FormMethod.Post))
{
<p>Sum: <span id="koeff" name="mult"></span></p>
//other code with submit button
}
Controller:
public ActionResult Index(string mult)// mult null why?
{
}
In controller mult always null, why?
<span>, not a form control (e.g.<input>). Only form controls submit values.