Lamez Posted January 18, 2008 Share Posted January 18, 2008 I have a nifty question. after a user makes a selection from one list box, how do I take that selection and add it to another list box with out sending submitting the info? For example in list box one: TeamA TeamB now they select TeamA and the second list box looks like this TeamA TeamC now if they do not select anything, the second list box looks like: check list box 1 is this possiable? Quote Link to comment https://forums.phpfreaks.com/topic/86563-form-question/ Share on other sites More sharing options...
p2grace Posted January 18, 2008 Share Posted January 18, 2008 The easiest way to do this would be to use ajax. I'd recommend using xajax at http://xajaxproject.org/. You could also do it with pure javascript, but it wouldn't be as dynamic or as easy to manage. Quote Link to comment https://forums.phpfreaks.com/topic/86563-form-question/#findComment-442293 Share on other sites More sharing options...
Lamez Posted January 18, 2008 Author Share Posted January 18, 2008 I am needing to do this in a couple weeks (no hurry), but would I be able to do this after I read over ajax for awhile? Quote Link to comment https://forums.phpfreaks.com/topic/86563-form-question/#findComment-442297 Share on other sites More sharing options...
p2grace Posted January 18, 2008 Share Posted January 18, 2008 I think so, if you need help when crunch time comes you can pm me. I use xajax every day. Quote Link to comment https://forums.phpfreaks.com/topic/86563-form-question/#findComment-442299 Share on other sites More sharing options...
Lamez Posted January 18, 2008 Author Share Posted January 18, 2008 Thanks pal, I will take a look, it is always fun learning a new language! Quote Link to comment https://forums.phpfreaks.com/topic/86563-form-question/#findComment-442300 Share on other sites More sharing options...
yaz Posted January 18, 2008 Share Posted January 18, 2008 Another really good option is jQuery.... (jquery.com) Quote Link to comment https://forums.phpfreaks.com/topic/86563-form-question/#findComment-442462 Share on other sites More sharing options...
rameshfaj Posted January 18, 2008 Share Posted January 18, 2008 Yes Ajax makes this really easy and if needed i can provide you the codes also.The codes are also available in this site,u can simply search here. Quote Link to comment https://forums.phpfreaks.com/topic/86563-form-question/#findComment-442536 Share on other sites More sharing options...
roshanbh Posted January 18, 2008 Share Posted January 18, 2008 hey dude....i've made the dropdown in ajax.....why dont u look at this post.. http://roshanbh.com.np/2007/12/change-dropdown-list-options-values-from-database-with-ajax-and-php.html Quote Link to comment https://forums.phpfreaks.com/topic/86563-form-question/#findComment-442539 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.