The Filter plugin will automatically use items from the Suggestions plugin if both are present at the same time. Suggestions plugin dispatches setSuggestions event which is processed by the Filter plugin and passed items are used to filter the input. That is unless filterItems options is explicitly set as shown in the example. In this case specified options take precedence.

Live Demo

Form Content

This is the data that will be submitted with HTML form.



	

	

Source

This is the original input HTML.

<textarea id="textarea" class="example" rows="1"></textarea>

This is the JavaScript source that was used to initialize this demo instance of TextExt.

<script type="text/javascript">
    $('#textarea').textext({
        plugins : 'autocomplete suggestions tags filter',

        suggestions: [
            'JavaScript',
            'Java',
            'PHP',
            'Ruby',
            'Python',
            'Closure',
            'Delphi',
            'Perl',
            'OCAML',
            'Erlang',
            'Scala',
            'Haskel',
            'Groovy',
            'Fortran',
            'Basic',
            'Cobol',
            'Go'
        ]
    });
</script>
Fork me on GitHub