ITeye博客

在textarea指定位置插入字符串

legend9999 · 2012-01-10 15:58 · javascript · java web 开发 · Web前端 · textarea · Markdown

在textarea中插入obj

function editSMS(id,obj){
	var smsContent_tmp=document.getElementById("smsContent_tmp");
	smsContent_tmp.focus(); 
	document.selection.createRange().text=obj.value;   
}

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。