i have a problem and I could not overcome about two days.
I have an delimited string and i want to populate a menu via JQuery.
My array like this;
Country1,City1|Country1,City2|Country2,City1|Country3,City1|Country3,City2|Country3,City3
and i want to use this menu structure by using JQuery append function (or any other suggested way)
I mean, when the user hover over my menu trigger a menu will pop up and all Countries will be shown and each one has own sub menu elements (Cities).
i would like to point that, how many Countries exist and each Contry has how many cities are unknown.
I used unique function to eleminate duplicated Countries but i cound not put Cities into Countries.
Thanks right now..