[jQuery] [Autocomplete]autocomplete in textarea
hi guys
i had used jQuery autocomplete in a textarea
i want the suggest results show in where i'm typing, not outside the
textarea.
i checked jQuery autocomplete source code, finding in line 722 is the
core code.
show: function() {
var offset = $(input).offset();
element.css({
width: typeof options.width == "string" || options.width > 0 ?
options.width : $(input).width(),
top: offset.top + input.offsetHeight,
left: offset.left
}).show();
top and left are what u want to change.
but i don't know how to get my typing position and use it in the case.