ericjw316 Posted February 9, 2011 Share Posted February 9, 2011 Hey everyone, I am trying to set up a thing where i will have a list of states in a drop down list. After a state is select i would like a section of check boxes to appear with cities that a person can choose from. Can anyone help me out with this i have looked on the internet and been trying to code this my self but with progress. I can work with php or java script all i need is some help on getting started and maybe an example. Thanks E Link to comment https://forums.phpfreaks.com/topic/227144-question-about-dropdown-list-and-checkboxes/ Share on other sites More sharing options...
anups Posted February 9, 2011 Share Posted February 9, 2011 look at http://www.dhtmlgoodies.com/index.html?page=ajax "Chained select boxes" Source Code http://www.dhtmlgoodies.com/index.html?whichScript=ajax_chained_select Demo http://www.dhtmlgoodies.com/scripts/ajax-chained-select/ajax-chained-select.html Link to comment https://forums.phpfreaks.com/topic/227144-question-about-dropdown-list-and-checkboxes/#findComment-1171735 Share on other sites More sharing options...
ericjw316 Posted February 9, 2011 Author Share Posted February 9, 2011 Thanks for the posting but it is not what i am looking for. I need the check boxes because they will need to select multiple cities. Link to comment https://forums.phpfreaks.com/topic/227144-question-about-dropdown-list-and-checkboxes/#findComment-1171736 Share on other sites More sharing options...
anups Posted February 9, 2011 Share Posted February 9, 2011 wheneveryou get ajax response you can modify it... instead of creating drop down you can create checkbox, hardly matter of 10-15 mins.... OR else in drop down you can set the 2 properties of <select> "multiple" & "Size" so that without checkbox uses can select multiple. Link to comment https://forums.phpfreaks.com/topic/227144-question-about-dropdown-list-and-checkboxes/#findComment-1171738 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.