OldWilly
Programmer
- Mar 1, 2002
- 66
Pleae forgive me if I'm posting to the wrong forum. I know a little ColdFusion but absolutely nothing about JavasScript.
I have a lengthy form, part of which is the standard input..
name, address, city, state, zip + a whole bunch more.
My client now wants a "county" select box. I have an MSSQL 2000 County table which contains all 3,000+ counties.
What I would like to do is to take the "state" selected
and read the database and then populate it to my "county" select box. That way I would have just the counties for the selected state rather than all 3000. I know how to do a cfquery but have no idea how to do the query in JS and then be able to retrieve the elements. Does anyone have a simple working example of this so I could modify it to my own needs?
I have a lengthy form, part of which is the standard input..
name, address, city, state, zip + a whole bunch more.
My client now wants a "county" select box. I have an MSSQL 2000 County table which contains all 3,000+ counties.
What I would like to do is to take the "state" selected
and read the database and then populate it to my "county" select box. That way I would have just the counties for the selected state rather than all 3000. I know how to do a cfquery but have no idea how to do the query in JS and then be able to retrieve the elements. Does anyone have a simple working example of this so I could modify it to my own needs?