I am using the jQuery plugin Tag-It for handling auto-suggestion and tagging. I am getting the data using an Ajax
call which is working fine.
The data at the moment is being returned in the following format:
{"itemID":"ItemName"}
For example:
{"1":"Yellow","2":"Green"}
This is going fine.
What I want to do is have the user click on the returned tag, and have the data stored in the hidden field something like this:
<input type="hidden" name="tag['itemID']['itemName']"/>
I can't seem to figure out how to do it, has anyone any experience with this and able to point me in the right direction?