2

How could I add event to use Autocomplete after keypress like @ or # (hashtags) and than format variants into links to insert?

1

1 Answer 1

3

Use jquery for it: jquery autocomplete

auto_options = { serviceUrl: '/getpincodes', width: 300, minChars:1, delimiter: /(@|#)\s, deferRequestBy: 0, //miliseconds type: "POST", isLocal:true, enable: true, onSelect: function(value, data){ return data; }, noCache: true //set to true, to disable caching }; $(document).ready( function() { $('#inputId').autocomplete(auto_options); }); 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.