Please Help, I have a form that generates data from database. i have to select value from a combobox so that i can see the value. but i wanted that data from database to be the value of the radio button. is that possible?I haven't started yet? can somebody give me a hint or a code snippet? i really need your help!Thanks!
THat's difficult to follow. Could you explain that again?
1. you get data from DB based on what a form sends - OK 2. select value from combobox - ok - but what value are you talking about? 3. you want DB data to be the value of the radiobutton. What radio button??
OK, that's relatively easy. Mind you, you could use 'false ajax' (my terminology) if you only have a handful of data items in the whole unfiltered dataset. That's when on page load, you get all the records from the SELECT * from type_tb type query and place the data into a js array. When you then select from the dropdown, it runs a js script to get the 'a' array items or the 'c' array items.
Just a thought. It saves going to the server and making DB server calls every time somebody selects something from the dropdown.
The down side of this is that any changes to the DB in the meantime will not be displayed on dropdown select. If your data is not going to be updated much, this should not be a great issue.