javascript中的文本框值更改事件 [英] Text box value Change Event in javascript
本文介绍了javascript中的文本框值更改事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我从日历控件中将日期提取到文本框中时,我需要在javascript中触发文本框值更改事件.
Hi,
I need to fire textbox value change event in javascript, when i''m pickup the date into textbox from the calender controls.
推荐答案
我认为您需要处理日历控件中的OnSelectionChanged
事件.
每次触发时,将文本框值设置为日历控件中的文本.
此处 [
I think you need to handle theOnSelectionChanged
event in the Calendar control.
Every time that fires, set the textbox value to text from the calendar control.
Here[^] is a sample for theOnSelectionChanged
event.
请尝试以下代码.
Try as below code.
<script type="text/javascript">
function TestOnTextChange()
{
//Your Code
}
</script>
<input type="text" id="myTextBox"
onchange="TestOnTextChange()">
^ ]和 ^ ]
这篇关于javascript中的文本框值更改事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文