I have (to be honest) no coding experience and this question is obviously the result of it. But...
I have a drop down with a first value of 'default' having the label 'pick an option'. On submit, this should be one of the other values. Hence if value is still 'default' warn the user to choose an element.
I assume javascript, but no idea to be honest. I thought within the element (cf dropdown) and do whatever there.
What's the basic structure of such a validation?
Again I can't code from scratch (copy paste is my game), and any advice/ref/tutorial would be very much appreciated.
I have a drop down with a first value of 'default' having the label 'pick an option'. On submit, this should be one of the other values. Hence if value is still 'default' warn the user to choose an element.
I assume javascript, but no idea to be honest. I thought within the element (cf dropdown) and do whatever there.
What's the basic structure of such a validation?
Again I can't code from scratch (copy paste is my game), and any advice/ref/tutorial would be very much appreciated.