diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2023-02-16 14:02:54 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2023-02-16 14:02:54 +0300 |
commit | aa5e64754bcd7c4d25546e773c42eacec04da5fe (patch) | |
tree | 6d2d8e5b4cfcf40c71a16822c563bc78369a3fe9 /Views/Bundles/Add.cshtml | |
parent | dc58f242fa20f89cdbb0f4b80138be04c3e50c2e (diff) |
Add number validation for input
Diffstat (limited to 'Views/Bundles/Add.cshtml')
-rw-r--r-- | Views/Bundles/Add.cshtml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Views/Bundles/Add.cshtml b/Views/Bundles/Add.cshtml index 81b3061..36b329b 100644 --- a/Views/Bundles/Add.cshtml +++ b/Views/Bundles/Add.cshtml @@ -23,7 +23,7 @@ </div> <div class="form-group"> <label asp-for="Price" class="form-label">Price:</label> - <input asp-for="Price" class="form-control" /> + <input asp-for="Price" type="number" class="form-control" /> </div> <button type="submit" class="btn btn-primary mt-3">Submit</button> </form> |