Hi everyone,
I am loading data from a mysql db into a datgrid. WHen the user selects a row, I have a script which loads the selected items details in dynamic text boxes, radio button group and comboBox from where the user can then change the details and save back to the db.
Everything is working fin however I don't know how to target the combobox option so that it displays when a row from the dg is selected.
This is what I'm trying at the moment...
if ($category == "archi") {
category2.value.data = archi;
} else if ($category == "exteriors") {
category2.value.data = exteriors;
} else if ($category == "product") {
category2.value.data = product;
} else if ($category == "flora") {
category2.value.data = flora;
} else if ($category == "farFlung") {
category2.value.data = farFlung;
} else if ($category == "fetch") {
category2.value.data = fetch;
} else if ($category == "folly") {
category2.value.data = folly;
}
I've also tried the same but without the .data
Any advice would be hugely appreciated.
Cheers