I am using a multiselect element from select2 to enter multiple \"tags\". When I want to get the value from the element I get something like this (for tag1 en tag2 which I e
var data = JSON.parse('[{"id":"tag1","text":"tag1"},{"id":"tag2","text":"tag2"}] '); data[0].id data[1].id
Try this will help you