自动事件在TextBox射击,而文本正在键入 [英] Automatic event firing in a textbox while text is being typed

查看:158
本文介绍了自动事件在TextBox射击,而文本正在键入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我M在asp.net使用C#设计一个拼写检查印第安语。

I m designing a spell checker for Indian language in asp.net using c#.

我有prepared所有模块。但是,有一个使用文本框,因为我希望它告诉错误,同时在文本用户类型,并强调该字符串的一个问题。

I have prepared all the modules. But, there is a problem using TextBox as I want it to tell the error while user types in the text and highlight that string.

我已经这样做了点击一个按钮,但我不能直接做它没有任何按钮。是否有可能使用jQuery或Ajax工具使用文本框进行实弹射击事件,而文本正在键入? (我试过框TextChanged 事件,但它被解雇,只有当一个按钮点击在asp.net)

I have done this on a button click but I am not able to do it directly without any button. Is it possible using jquery or ajax tools to use a TextBox for firing an event while text is being typed? (I tried TextChanged event but it gets fired only when a Button is clicked in asp.net)

推荐答案

您可以使用改变事件做出该事件中的Ajax调用。

You can use change event and make to ajax call inside that event.

$( ".target" ).change(function() {
 //make ajax call to u'r function
});

这篇关于自动事件在TextBox射击,而文本正在键入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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