How can I make jQuery Autocomplete replaces only certain word - not full string?

Posted by user553640 on Stack Overflow See other posts from Stack Overflow or by user553640
Published on 2010-12-25T01:48:30Z Indexed on 2010/12/25 1:54 UTC
Read the original article Hit count: 512

Filed under:
|

I am using bassistance.de jQuery Autocomplete function.

Have text like "hello to you @john" I made, Autocomplete run only when character @ is in word. But when I click on the needed item, it replaces me full text. How can I do so - to replace only "@john"? Or maybe there is another Autocomplete plugin for jQuery, which has such ability?

$('#input_line').autocomplete('data.php', {

extraParams: {input: function(){return GetTextareaWord("input_line");}} });

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about autocomplete