how can catched event of "cursor place change" inside textarea jquery (also should working in ie6)?
example1:
before :text |
after : te|
example2:
before :text |
after : text tex|t2
example3:
before :text |
after : |
edit:
after catching event of cursor- need check if cursor change position (also have work ie6)
edit2:
if have solution not work in ie6 in ie7+webkit please write it
thanks,
yosef
there 3 events can cause cursor change position,
- keystrokes
- mouse clicks
programmatic events paste, select, focus...
i capture events whatever trying accomplish 'cursor place change'
code sample added:
$("#mytextinput").bind("keydown click focus", function() { alert("current position: " + $(this).caret().start); });
Comments
Post a Comment