About 9,360,000 results
Open links in new tab
  1. 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 …

  2. How do I make a field required in HTML? - Stack Overflow

    Find out how to make a field required in HTML forms using the "required" attribute and ensure proper validation for user inputs.

  3. 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 …

  4. How to set HTML5 required attribute in Javascript?

    edName.attributes.required = [object Attr] That's because required in that code is an attribute object, not a string; attributes is a NamedNodeMap whose values are Attr objects. To get the value of one of …

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

    1023 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 …

  6. Why were `required` and `optional` removed in Protocol Buffers 3?

    I noticed that required and optional have been removed in the new syntax. Why were required / optional removed in proto3? Such keywords introduce constraints which should improve robustness.

  7. .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.

  8. 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.

  9. Use CSS to automatically add 'required field' asterisk to form inputs

    What you need is :required selector - it will select all fields with 'required' attribute (so no need to add any additional classes). Then - style inputs according to your needs.

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

    I have the following MVC 5 Razor HTML helper: @Html.TextBoxFor(m => m.ShortName, new { @class = "form-control", @placeholder = "short name"}) I need this field to be required (i.e. have a red …