Skip to main content
Topic: change field value based on a dropdown selection (Read 965 times) previous topic - next topic

change field value based on a dropdown selection

Good morning, i have two tables on my db, T1 has two fields "id" and "status" en T2 is a form input with a dropdown in one input. The drop down populates on ids on T1 but only with the ones with "status" "available" if it says anything else wont show it on the dropdown. What i would like to know is how can i change the status on T1 "status" from available to any other when one of the available ids is selected from the dropdown on T2? i know by reading this forum that probably solution would be client event or befor or after, but im a begginer at this and know n othin on js. :'(  i red on jquery site, but have no idea where to beggin with. Any example on tis will be gratly appreciate. thanks in advance.