I am using Bootstrap Tags Input
I am trying to add tags dynamically.
$('.div-tag').tagsinput('add', 'vino');
The above code works fine, but when I try the following code:
$('.div-tag').tagsinput('add', { id: 1, text: 'some tag' });
I get the error:
Uncaught Can't add objects when itemValue option is not set
Please help me to add tag with id and value.