Davie's Burgers ( Exercise 6 )

In the 6th exercise ( Number input ), how do i prevent “Number of patties you would like” showing negative numbers if i hit the bottom arrow?

Hello @gauravb9993389825, welcome to the forums! You can set the min attribute to the number you want as the lowest. In this case, you can set it to 0, if you want to avoid negative numbers. Here is an article that gives a quick overview of min, max, step, etc.

1 Like