Md.Harun-Ur-Rashid
Bangladesh
website: learn24bd.com
Plugin: setCursor
Version: 1.0
Add jQuery first and then add setCursor.min.js
$(function() { $('input.a').setCursor(); $('button.a').click(function(){ $('input.a').setCursor({start:true}); }) $('button.b').click(function(){ $('input.a').setCursor({last:true}); }) $('button.c').click(function(){ $('input.a').setCursor({select:true}); }) $('button.d').click(function(){ $('input.a').setCursor({after:2}); }) })
Option | Type | Default | Remarks |
---|---|---|---|
start | boolean | false | Set the cursor at first |
end | boolean | true | Set the cursor at the end of text |
select | boolen | false | Select the text |
after | number | 0 | Set the cursor after number of letter |