So, I am trying to create a dynamic dropdown box from the ajax request received inside oneditprepare.
I am trying to get an id and all its operations into the dropdown box dynamically.
Example:-
$.ajax({
url:url_base + '/list-services',
success: function (params) {
let json =params.data
console.log(json)
}
})
The data I am getting back is in JSON format.
Example of how I am creating dynamic dropdown box
const newOp = (<option>${gg}</option>)
$("#node-input-operation").append(newOp)