mac007 Posted December 4, 2008 Share Posted December 4, 2008 Hi, guys... have a quick question: I have a SELECT menu where people can choose from a group of options. Lets call this menu "sizes". I want to be able to pass the value selected in this menu, into a hidden field "Description". In other words, this hidden "Description" field holds the general info for the item, like "Blue Shirt", and now I want the "sizes" values (Small,Medium,Large), to be included in this field after is selected, so that in the end, once "Description" is passed over, it will read "Blue Shirt Small". I figured it could be done with an "OnClick" or "OnRelease" kind of command on the SELECT menu, that will process the value, which then can be added with php into this "Description" field ...?? not sure if I am making sense... plus doing it this way I wouldnt have to refresh page either...? welcome any feedback! Quote Link to comment https://forums.phpfreaks.com/topic/135505-how-can-i-have-select-menu-populate-hidden-field-thru-javascriptphp/ Share on other sites More sharing options...
premiso Posted December 4, 2008 Share Posted December 4, 2008 Either you need to code the sizes into the javascript or you want to look into using AJAX. Quote Link to comment https://forums.phpfreaks.com/topic/135505-how-can-i-have-select-menu-populate-hidden-field-thru-javascriptphp/#findComment-705949 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.