Menu Options with User-Generated Content

37 views Asked by At

I'd like to create a menu with options that users input. User inputs will most likely be stored in a JSON object.

One way to go about it would be jstree. But are there any good alternatives out there?

1

There are 1 answers

0
Tezra On BEST ANSWER

It largely depends on what you are doing with it and how you are dealing with it, but basic javascript objects is plenty to implement this.

    menu = {}
    menu["apple"] = 1.99
    menu["bagle"] = {price: 3.50, by:"KawaiUser99"}
    console.log(Object.keys(menu))
    document.write(JSON.stringify(menu))