Usage
$('input[name="country"]').amsifySuggestags();
$('input[name="color"]').amsifySuggestags({
suggestions: ['Black', 'White', 'Red', 'Blue', 'Green', 'Orange']
});
$('input[name="color2"]').amsifySuggestags({
suggestions: [
{tag: 'Black', value: 1},
{tag: 'White', value: 2},
{tag: 'Red', value: 3},
{tag: 'Blue', value: 4},
{tag: 'Green', value: 5},
{tag: 'Orange', value: 6},
],
whiteList: true
});
$('input[name="toAjax"]').amsifySuggestags({
suggestionsAction : {
url : 'jquery-plugins/suggestags/examples/suggestions.php'
}
});
$('input[name="planets"]').amsifySuggestags({
suggestions: ['Mercury', 'Venus', 'Earth', 'Mars', 'Jupitor', 'Uranus', 'Neptune', 'Pluto'],
whiteList: true
});
$('input[name="fruits"]').amsifySuggestags({
suggestions: ['Apple', 'Banana', 'Cherries', 'Dates', 'Guava'],
classes: ['bg-primary', 'bg-success', 'bg-danger', 'bg-warning', 'bg-info'],
whiteList: true
});
$('input[name="anything"]').amsifySuggestags({
tagLimit: 5
});
$('input[name="new_types"]').amsifySuggestags({
trimValue: true,
dashspaces: true,
lowercase: true,
tagLimit: 4
});