
Mark a required label with an asterisk
If you set the [Required] annotation on a required model property, the input field gets a data-val-required attribute in the view.
With this jQuery snippet an asterisk (“*”) gets appended to the corresponding label: