I have a simple drop down that allows you to choose a country. On my site if the address in the form comes out wrong it refreshes the page and brings up a validation box. If someone choses Canada it defaults back to the US when the page refreshes. With javascript could it remember Canada after the refresh?
You could simply store some cookies, you could do javascript to accomplish this. Can't really give you much more than that as I'm not proficient enough in JS, but 'cookies' are what you're looking for.
Yep, as JavaScript is client-side, the only thing you'll be able to do is set cookies. It's nice and easy, just set the cookie when they choose Canada and then read it on page load
I have a simple drop down that allows you to choose a country. On my site if the address in the form comes out wrong it refreshes the page and brings up a validation box. If someone choses Canada it defaults back to the US when the page refreshes. With javascript could it remember Canada after the refresh?
HTMLJS