Hello all,
I'll start by saying that I am new to JS. I'm also learning PHP, and one of the things I want to do for a project I'm working on, is have the user submit a registration form. Included in this form, will be State and City. So, I'd like to have the user select a state from a drop down box, then based on what state they are in, have the second drop down box in the form be a list of Cities in that State (not all Cities, just major metro cities that I will define). I don't want to have the script look up a table in MySQL, because I'd rather not have the screen refresh overhead. I'd rather keep the information on the client level, so I thought javascript would be a good choice. Well, I've been looking for days for a script like this, and I've found several examples that are close, but they all seem to have a twist to them that I'm not after, and when I start cutting parts of the script out to fit my need, it doesn't work. Does anyone know of this script already in place somewhere?
-Mick-
I'll start by saying that I am new to JS. I'm also learning PHP, and one of the things I want to do for a project I'm working on, is have the user submit a registration form. Included in this form, will be State and City. So, I'd like to have the user select a state from a drop down box, then based on what state they are in, have the second drop down box in the form be a list of Cities in that State (not all Cities, just major metro cities that I will define). I don't want to have the script look up a table in MySQL, because I'd rather not have the screen refresh overhead. I'd rather keep the information on the client level, so I thought javascript would be a good choice. Well, I've been looking for days for a script like this, and I've found several examples that are close, but they all seem to have a twist to them that I'm not after, and when I start cutting parts of the script out to fit my need, it doesn't work. Does anyone know of this script already in place somewhere?
-Mick-