IE浏览器输入框无法输入信息问题
1、弹出框填写意见不能输入信息伟帽

2、jq: function focusTextarea(){ selectText($("#opinion")[0],0,0); }function selectText(textbox,startIndex,stopIndex){ if(textbox.setSelectionRange){ textbox.setSelectionRange(startIndex,stopIndex); }else if(textbox.createTextRange){ var range=textbox.createTextRange(); range.collapse(true); range.moveStart('character',startIndex); range.moveEnd('character',stopIndex-startIndex); range.select(); } textbox.focus();}

3、jsp:
<tr> <th>夏往审信针材批意见:</th> <td> <textarea rows="4" cols="50" style="width:300px" id="opinion" name="opinion" maxLength="500" onclick="javascript:focusTextarea();"></textarea> </td> </tr>

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:89
阅读量:102
阅读量:61
阅读量:150
阅读量:102