Read an MVC @Html.TextBoxFor from Javascript
<p>I must read, on a change event, the value of a <code>html.TextBoxFor</code> field.</p>

<p>Now I have this element in my MVC Form:</p>

<pre><code>   @Html.TextBoxFor(m =&gt; m.Pod, new {
     @class = "inputStyle180", @title = "Pod", @onchange = "onChangePod();"
})
}
</code></pre>

<p>And this Javascript function:</p>

<pre><code> function onChangePod() {
    var Trovato = false;
    //var sPod = document.getElementById("Pod").value;
    var Pod = $('#Pod').val();
    alert(sPod);
    $.getJSON('@Url.Action("VerificaDatiUtenza", "EELAutoletture")', {
      Pod: Pod
    }, function(data) {
      $.each(data, function(i, item) {
        Trovato = true;
        if (i == "Denominazione") {
          $('#Denominazione').val(item);
        }
        if (i == "Localita") {
          $('#Localita').val(item);
        }
      });
    });
    if (Trovato == false) {
      alert("ATTENZIONE! Pod non in anagrafica");
    }
  };
</code></pre>

<p>But the variable <code>Pod</code> is empty</p>