Codenames Posted August 10, 2013 Share Posted August 10, 2013 How can i generate select tag e.g if user select category country: United States then generate select tag with provinces: Newy York, Holywood, Vegas php or javascript *generate_select_tag <select id"province"> <option value "ny">New York<option> <option value"HD">Hollywood<option> <option value"vg">Vegas<option> </select> if anyone can help, because no one is wiling to help, but if you have the heart you are welcome. Thanks, Quote Link to comment https://forums.phpfreaks.com/topic/281019-generating-select-fuctions/ Share on other sites More sharing options...
trq Posted August 10, 2013 Share Posted August 10, 2013 Are you sure you are not able to find examples of how this is done already? I mean, it's very common scenario. Hell, there is even a few jQuery plugins around that handle this. Where exactly are you stuck? Quote Link to comment https://forums.phpfreaks.com/topic/281019-generating-select-fuctions/#findComment-1444297 Share on other sites More sharing options...
Codenames Posted August 10, 2013 Author Share Posted August 10, 2013 (edited) Im trying to make a Post Ad function - on Classified site And im stuck, i feel bad about its been a week, can you help me with this? I dont want to use plugins i want to do it manuall, anyway what is this function called? Edited August 10, 2013 by Codenames Quote Link to comment https://forums.phpfreaks.com/topic/281019-generating-select-fuctions/#findComment-1444299 Share on other sites More sharing options...
trq Posted August 10, 2013 Share Posted August 10, 2013 I dont want to use plugins i want to do it manuall But you don't know how to do it? That makes no sense. Quote Link to comment https://forums.phpfreaks.com/topic/281019-generating-select-fuctions/#findComment-1444305 Share on other sites More sharing options...
Codenames Posted August 11, 2013 Author Share Posted August 11, 2013 Learning to know, big difference Quote Link to comment https://forums.phpfreaks.com/topic/281019-generating-select-fuctions/#findComment-1444403 Share on other sites More sharing options...
subhomoy Posted August 11, 2013 Share Posted August 11, 2013 It's basically done with javascript... Try to learn it first... It will help u in future.... Quote Link to comment https://forums.phpfreaks.com/topic/281019-generating-select-fuctions/#findComment-1444406 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.