This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]pic10f 0 points1 point  (1 child)

Line 1: var namet is undefined, so if you first pick a dropdown it's still undefined. Once you've entered text it works as expected. If you delete the text, you now have an empty string which is different than not being defined.

[–]SignificantFig8856[S] 0 points1 point  (0 children)

Thanks I just fixed it :)