文本框选中部分值
function selectText(txt,sIndex,eIndex){if(txt.setSelectionRange){txt.setSelectionRange(sIndex,eIndex);}else if(txt.createTextRange){var range = txt.createTextRange();range.collapse(true);range.moveStart("character",sIndex)range.moveEnd("character",eIndex);range.select();}}
?