HTML numeric input in form is defined as
@Html.TextBoxFor(m => Model.Products[i].Soodkogus,
new { type = "number", min = 0, @class = "quantity" })
This produces input boxes with content 0.
How to make the input box blank if its value is 0? Only non-zero values should shown.
This is an ASP.NET 6 MVC Razor application. jQuery and Bootstrap 5 are used.
I don't know what your framework is doing in background when generating this input fields, but if you just want to achieve this logic with jQuery - something like this should work.