如何在MVC中获取文本更改值 [英] how to get text change value in MVC

查看:74
本文介绍了如何在MVC中获取文本更改值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在MVC中的文本框中更改值时获取文本框的值。

How to get value of a text box while value changes in textbox in MVC.

推荐答案

检查以下jsfiddle示例

链接 [ ^ ]
Check following jsfiddle example
link[^]



('#txtName')

。 on('input',function(){



/ ********** logic ********* /

})



逻辑部分你可以指定你想要实现的任何部分
('#txtName')
.on('input', function () {

/**********logic*********/
})

in the logic part you can specify whatever part you want to implement


这篇关于如何在MVC中获取文本更改值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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