I have a select box that defines how many items are going to be displayed to the user.
However, when it fails to fill one of the inputs, it displays the error: "undefined" If it fills the 5 fields, they work fine, the problem is when the user chooses less field.
How do I collect the value of the inputs and not display this error?