'how to dynamically load select/dropdown in jenkins plugin from rest api

I am developing a Jenkins plugin. I almost completed the development. I facing one issue that is in dropdown/select element name and values are coming correctly after selection it's showing selected options id instead I want to show name as its readable but its selected value should be id. What am i doing wrong? Can anybody provide me some samples? I am facing this issue from past 1 week. thanks in adavace..

please see the attached image (https://i.stack.imgur.com/PvhGg.png)

and souce code is flinko plugin

In my plugin i have two dropdown list.after selecting any item it should display project name and set its value should be project id. Current its showing project name correctly but after selection id is displaying.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source