How to add country to a validation form, creating a validation form with JavaScript, html and CSS but don't know how to add countries to my form, please help. also i need help on CSS, want when mouse is hovered over the submit button and the form box, it will change color
CodePudding user response:
I do not think there is built-in dropdown for countries in html but this link might be helpful. OR this answer
for button
button:hover{
background-color: some custom color
}
Is this what you wanted?
CodePudding user response:
**Both examples work for you
First, this work for design and adding the country into dropdown is also good for design(Html, CSS) and you can customize it with jQuery, javascript also
https://demo.mobiscroll.com/javascript/select/country-picker
Second You can find validate whether the options are selected or not any type of condition according to the business logic you can set on it.
https://demo.mobiscroll.com/javascript/select/country-picker**