
<textarea id="textarea" rows="1"></textarea> <script type="text/javascript"> $('#textarea').textext({ plugins : 'tags prompt focus autocomplete ajax arrow', tagsItems : [ 'Basic', 'JavaScript', 'PHP', 'Scala' ], prompt : 'Add one...', ajax : { url : '/manual/examples/data.json', dataType : 'json', cacheResults : true } }); </script>