title: How to set text box for based on click behavior ASP MVC
body: <p>How can I set <code>TextBoxtFor</code> value with string "<code>N/A</code>", when a user click the link text <code>click</code> in the view</p>
  
  <p>Below is my code:</p>
  
  <pre><code>&lt;div class="form-group"&gt;
      &lt;div class="col-md-6"&gt;
          @Html.TextBoxFor(m =&gt; m.ReferralId, new { @class = "form-control", id="CheckReferralId", placeholder = "Referral ID (Inviter)", required = "required", tabindex = 0 })
      @Html.ValidationMessageFor(m =&gt; m.ReferralId, null, new { @class = "text-danger" })
          &lt;small&gt;If you do not have Referral ID, &lt;a href="#"&gt;click&lt;/a&gt;&lt;/small&gt;
       &lt;/div&gt;
   &lt;/div&gt;
  </code></pre>
  
  <p>Thank you!</p>