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 ?

manojamanoja Posts: 6Questions: 3Answers: 0

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?

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    edited July 2018

    Hi @manoja ,

    This example here shows how you can IDs to the returned JSON. Hopefully that will help,

    Cheers,

    Colin

This discussion has been closed.