views:

6

answers:

0

I am using an inline filteringselect with datastore, as follows:

I am using ABBR as the identifier and NAME as the value.

The filtering selects and works correctly, but I have two issues.

  1. Firstly, how do I retrieve the ABBR for the selected option NAME? I have tried various things, including .innerHTML but that only retrieves the selected item name, not the identifier.

  2. Secondly, when using the datastore option, how can I choose the default selected item, for example if it was a scale of 1 to 10 and I wanted 5 as the default selection, how can I do this?

Any ideas and advice would be greatly appreciated.

Mank thanks