About 51 results
Open links in new tab
  1. html - required or required = "required" - Stack Overflow

    Sep 24, 2013 · Required This attribute specifies that the user must fill in a value before submitting a form. It cannot be used when the type attribute is hidden, image, or a button type (submit, reset, or …

  2. .net - required vs [Required] in C# 11 - Stack Overflow

    Mar 30, 2023 · Agreed. [Required] is for data validation and in many cases work with ef, and required keyword is c# general.

  3. c# - Convince System.Text.Json to ignore a property with the `required ...

    Jul 26, 2025 · However "required" is the exact opposite to "ignore" so the two configurations are mutually exclusive. If the property needs to be ignored you should remove the required keyword.

  4. html - Required attribute HTML5 - Stack Overflow

    As ms2ger has pointed out, the required attribute is a boolean attribute, and here's what the HTML 5 spec has to say about those: Note: The values "true" and "false" are not allowed on boolean attributes.

  5. Validation | required="true" / "false" | HTML form - Stack Overflow

    Explains how to use the "required" attribute in HTML forms for input validation, including examples and best practices.

  6. validation - How to Indicate Required Fields? - Stack Overflow

    Source: Form fields — Required vs Optional by Jordane Sanson Why use optional fields is always better than required : An asterisk is obvious to you, not to everyone, believe me, there are always some …

  7. c# - Required keyword causes error even if member initialized in ...

    Aug 15, 2023 · The required modifier indicates that the field or property it's applied to must be initialized by an object initializer. A constructor is not an "object initializer".

  8. How to use the "required" attribute with a "radio" input field

    1025 TL;DR: Set the required attribute for at least one input of the radio group. Setting required for all inputs is more clear, but not necessary (unless dynamically generating radio-buttons). To group radio …

  9. html - html5 required and jQuery submit () - Stack Overflow

    Jul 8, 2012 · Explore how to use HTML5 'required' attribute with jQuery's submit() method for form validation.

  10. asp.net mvc - How to add "required" attribute to mvc razor viewmodel ...

    new { @class = "form-control", placeholder = "short name", required="required"}) or you can use the RequiredAttribute class in .Net. With jQuery the RequiredAttribute can Validate on the front end and …