title: How can I put red border around input without JS?
body: <pre><code>&lt;span asp-validation-for="Password" class="text-danger"&gt;&lt;/span&gt;
  &lt;div class="form-group"&gt;
      &lt;label asp-for="Password"&gt;პაროლი&lt;/label&gt;
      @Html.TextBoxFor(x =&gt; x.Password, new { type = "password",@class = "form-control" })
      &lt;!-- 
      &lt;input asp-for="Password" class="form-control" /&gt;
      --&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>This is Sample input. I am doing Server-side validation only. How can I make input field border red when user input is not validated?</p>