I am trying to display the ticket name for the selected ticket on the edit page but am confused about how to display it on the UI.
code JS: enter image description here
code HTML:
list ticket page:
edit page:
Note: Here, the id name and status should show enter image description here
I didn't get truly how your code is working but I think the main problem you are facing is having the same id for different HTML elements (same id for input and label, same id for select and label).
<!-- this is okey -->
<label for="firstInput" >First input</label>
<input id="firstInput">
<!-- this isnt okey , same id for input and label -->
<label for="secondInput" id="secondInput" >Second input</label>
<input id="secondInput">
Hope that will solve your problem