摘要: 文字插入光标处插件代码:/***文字插入光标处插件*调用方法:$("txtInput").insertAtCaret(“text”);*/(function($){$.fn.extend({insertAtCaret:function(myValue){var$t=$(this)[0];if(document.selection){this.focus();sel=document.selection.createRange();sel.text=myValue;this.focus();}elseif($t.selectionStart||$t.selectionStar 阅读全文
posted @ 2012-07-23 15:16 贝加 阅读(381) 评论(0) 推荐(0) 编辑