alexgorbatchev/jquery-textext — pull request #41 by quaff (2012-03-31 02:36:15+00:00)
Title: allow user click item for adding it when autocomplete custom render return html not simple text

allow user click item for adding it when autocomplete custom render return html not simple text

for example,if json is not string array,but a tuple array:
[{"label":"label for value1","value":"value1"},{"label":"label for value2","value":"value2"}]

```js
render : function(suggestion) {
if (typeof suggestion == 'string') {
return suggestion;
} else {
if (!suggestion.label)
return suggestion.value;
else
return '

'+ suggestion.label + '

';
}
}
```