Replies
Viewing 1 post (of 1 total)
Thank you for the reply! Eventually I found the problem was related to the id: in the example code above. I was using numbers as shown in the example, thinking it was equivalent to an array key. But it seems it’s more equivalent to a “value”. So changing it to text with this code resolved everything:
var data = { id: 'Barn owl', text: 'Barn owl' };
Viewing 1 post (of 1 total)