title: I can't get Html.TextBoxFor value with JavaScript
body: <p>I am facing a very interesting problem.</p>
  <p>the control I use</p>
  <pre><code> &lt;input id=&quot;DOSYA_NO&quot; name=&quot;DOSYA_NO&quot; class=&quot;form-control&quot; /&gt;
  </code></pre>
  <p>I can get the input value with the code below.</p>
  <pre><code>$(&quot;#gelenevrakFoto&quot;).click(function () {
      alert($('#DOSYA_NO').val());
    });
  </code></pre>
  <p>but this way the input value is empty.</p>
  <pre><code>$(&quot;#gelenevrakFoto&quot;).fileinput({
                      uploadUrl: &quot;/Dosya/Upload?policeId=&quot; + $('#POLICE_ID').val() + &quot;&amp;Kategori=GELENEVRAK&amp;dosyaNo=&quot; + $('#DOSYA_NO').val(),
                      maxFileCount: 10,
                      showBrowse: true,
                      browseOnZoneClick: true
                  });
  </code></pre>
  <p><a href="https://i.stack.imgur.com/qdE2M.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qdE2M.png" alt="Network Tracing" /></a></p>
  <p>Please I would like you to help on the subject. Thanks.</p>