i'm having a textbox where i need to set focus/ cursor at required index of the textbox in opera browser.
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- How to fix IE ClearType + jQuery opacity problem i
- void before promise syntax
- jQuery add and remove delay
ur code works fine, but getting clash in opera.
becoz the following code snippet
is also true to opera, but createTextRange 'll only supported by IE.
So i have changed little modification in ur code
Working Demo
elemId: id of the element
caretPos: position of the cursor