views:

320

answers:

0

Hello, sorry first my English language is not good. I have developed this autosuggest script for IE (script demo). The method is from this author: character position in textarea.

The problem is when I put into the textarea dir="rtl", while the Arab written from right to left. Then I can not define the position from cursor. And OffsetLeft gives me wrong values. Has anyone a nice idea on how to fix this problem?