I am pretty knew to coding - so I hope my question doesn't seem too stupid. I am trying to create an array for a dropdown-list.
Currently I am using this
$(function(){
$('.test').editable({
type: 'select',
value: "keine",
source: [
{value: 'DD', text: 'DD'},
{value: 'HEAL', text: 'HEAL'},
{value: 'TANK', text: 'TANK'},
{value: 'keine', text: 'keine'}
]
});
});
which works perfectly for creating a manual dropdown-list.
But I am searching for a dynamic solution with which I can insert values from a specific table in my sql-database (USING SIMILAR SYNTAX TO THE EXAMPLE ABOVE - maybe using .$fetch['role']. ?).
Looking forward to receiving some suggestions.