How to set Id to each option in select list on the editor form ?
How to set Id to each option in select list on the editor form ?
![manoja](https://secure.gravatar.com/avatar/2f9f758ff126c27bb73abcab7c1fb1be/?default=https%3A%2F%2Fvanillicon.com%2F2f9f758ff126c27bb73abcab7c1fb1be_200.png&rating=g&size=120)
I am getting a JSON result from controller with student "ids" and "names". I set "names" as option values and label . I want to set "ids" as id for each option (<option id=" " value="names">"names"</option>). I am not finding a way to do that. Can you help me?
This discussion has been closed.
Answers
Hi @manoja ,
This example here shows how you can IDs to the returned JSON. Hopefully that will help,
Cheers,
Colin