I would love to work out how to do this unaided, but I need to get this sorted quick, so would appreciate some help here:
I have been told I need a function to do this, so if someone could help me out.
I have a DB table with the following 3 fields:
ItemID, ItemName, ItemValue
The form is a drop down list (with entries from the DB), and a text box.
The drop down list is to show all the ItemName 's, and when one is selected, the ItemValue is then added into text box.
I have got this to work by using the Name & Value of the drop down list.
However I need to send the ItemID back to the DB to record their selection.
So I have nowhere else to put the ItemID in the drop down, so I have been told I need to do some JS to link whats selected to the ItemID.
Can anyone help?
Ask away with any questions
I have been told I need a function to do this, so if someone could help me out.
I have a DB table with the following 3 fields:
ItemID, ItemName, ItemValue
The form is a drop down list (with entries from the DB), and a text box.
The drop down list is to show all the ItemName 's, and when one is selected, the ItemValue is then added into text box.
I have got this to work by using the Name & Value of the drop down list.
However I need to send the ItemID back to the DB to record their selection.
So I have nowhere else to put the ItemID in the drop down, so I have been told I need to do some JS to link whats selected to the ItemID.
Can anyone help?
Ask away with any questions