BuddyDev

Search

Replies

  • Participant
    Level: Initiated
    Posts: 1
    Evan on #52891

    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'
    };