选择值退格后,Ajax自动完成扩展程序中的问题无效 [英] Problem in Ajax auto complete extender after selecting the value backspace is not working

查看:74
本文介绍了选择值退格后,Ajax自动完成扩展程序中的问题无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用ajax autocomplete extender选择文本框中的值。从自动完成扩展器中选择值后,光标在文本框中聚焦但后面的空间不起作用

可以任何人帮我解决这个问题



在此先感谢

(Keerthi Kumar)

For selecting the value in the textbox am using ajax autocomplete extender. After selecting the value from auto complete extender, cursor is focusing in the text box but back space is not working
can any one please help me to solve this issue

Thanks in advance
(Keerthi Kumar)

推荐答案

最好将光标聚焦在使用javascript文本

It is better to focus the cursor at the end of the text by using javascript
//to display the cursor at the end of the text
function SetEnd(txt) {

    var FieldRange = txt.createTextRange();
    FieldRange.moveStart('character', txt.value.length);
    FieldRange.collapse();
    FieldRange.select();
}





调用此事件textBox的OnChange事件



Call this event OnChange event of the textBox


这篇关于选择值退格后,Ajax自动完成扩展程序中的问题无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆