It seemed like the javascript code wanted it in this particular format. Perhaps the IDs are unnecessary but I haven't played around with it yet. http://loopj.com/jquery-tokeninput/