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 tags filter'
        })
        .bind('getSuggestions', function(e, data)
        {
            var list = [
                    'Basic',
                    'Closure',
                    'Cobol',
                    'Delphi',
                    'Erlang',
                    'Fortran',
                    'Go',
                    'Groovy',
                    'Haskel',
                    'Java',
                    'JavaScript',
                    'OCAML',
                    'PHP',
                    'Perl',
                    'Python',
                    'Ruby',
                    'Scala'
                ],
                textext = $(e.target).textext()[0],
                query = (data ? data.query : '') || ''
                ;

            $(this).trigger(
                'setSuggestions',
                { result : textext.itemManager().filter(list, query) }
            );
        })
        ;
</script>
Fork me on GitHub