lulu50
asked on
Dropdown box
Hi,
I have three dropdown boxes
First is the State
Second is the City
Third is the Churches
What I want is if the user select state, City and churches than click on Search button.
the State dropdown box should select what the user submitted. the same
with the City and Churches.
right now the state works fine if I select Alabama and click on search the page refresh and
the selected State Alabama is selected and the rest of the states are displayed.
I want the city and churches to work just like the state. I got the state to work because it is populated in coldfusion but the city and churches are populated thru Javascript that means I am lost here.
Please, see my HTML document.
Thank you.
test.html
I have three dropdown boxes
First is the State
Second is the City
Third is the Churches
What I want is if the user select state, City and churches than click on Search button.
the State dropdown box should select what the user submitted. the same
with the City and Churches.
right now the state works fine if I select Alabama and click on search the page refresh and
the selected State Alabama is selected and the rest of the states are displayed.
I want the city and churches to work just like the state. I got the state to work because it is populated in coldfusion but the city and churches are populated thru Javascript that means I am lost here.
Please, see my HTML document.
Thank you.
test.html
ASKER
ansudhindra
thank you for helping me. It works great except one little thing is that in the Getchurch multiple selections.
I want when the user highlight the selections and click on search I want the page to refresh and select
what the user previously selected.
thank you so much
thank you for helping me. It works great except one little thing is that in the Getchurch multiple selections.
I want when the user highlight the selections and click on search I want the page to refresh and select
what the user previously selected.
thank you so much
ASKER
right now I do see the list of the previous selections in the Getchurch and that is great I just want them to be highlighted.
ASKER
For testing when I select Alabama --> Abbeville --->
and selected only few churches from the church list
like:
Saint John Ame Church
First Assembly of God
Bethlehem Baptist Church
then clicked on Search
I got back all the churches from Abbeville but I just want instead to see only the selected churches highlighted.
I don't want to see all churches from Abbeville but I only want to see
Saint John Ame Church
First Assembly of God
Bethlehem Baptist Church
highlighted
and selected only few churches from the church list
like:
Saint John Ame Church
First Assembly of God
Bethlehem Baptist Church
then clicked on Search
I got back all the churches from Abbeville but I just want instead to see only the selected churches highlighted.
I don't want to see all churches from Abbeville but I only want to see
Saint John Ame Church
First Assembly of God
Bethlehem Baptist Church
highlighted
ASKER
I am sorry I need to reword this.
"I don't want to see all churches from Abbeville but I only want to see
Saint John Ame Church
First Assembly of God
Bethlehem Baptist Church
highlighted "
I do want to see all churches back that are from Abbeville but I want what the user selected previously is to be highlighted.
Sorry, if I confused you.
"I don't want to see all churches from Abbeville but I only want to see
Saint John Ame Church
First Assembly of God
Bethlehem Baptist Church
highlighted "
I do want to see all churches back that are from Abbeville but I want what the user selected previously is to be highlighted.
Sorry, if I confused you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ansudhindra
This is excellenttooooo !!!!!!!!!!!!!!!!!!!!!!
Thank you and thank you and thank you
it is exactly how I want it beautiful
Thank you for one million and one !!!!!!!!!!
This is excellenttooooo !!!!!!!!!!!!!!!!!!!!!!
Thank you and thank you and thank you
it is exactly how I want it beautiful
Thank you for one million and one !!!!!!!!!!
ASKER
Great Job!!!!!
Thank you again and again that's it I need to save some for my next question :)
Thank you again and again that's it I need to save some for my next question :)
You are welcome.......
Open in new window
Dropdown for City should be
Open in new window
Multiple select for church should be
Open in new window
Update your code and let me know in case of any help needed. you can remove javascript list and assign the coldfusion list to the javascript variable, like
<cfoutput>
var getmyChurchList=#churchLis
</cfoutput>
same for city list.
But these city and church list should be kept in the database for the ease of maintainance. If you need to add a city or a church then you have to update the cfm file again and again.