将textBox1的内容复制到textBox2而不按任何按钮或任何东西/在textBox1上输入内容后自动复制 [英] copy contents of textBox1 to textBox2 without pressing a button or anything/automatically copies as soon as I enter something on textBox1
本文介绍了将textBox1的内容复制到textBox2而不按任何按钮或任何东西/在textBox1上输入内容后自动复制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
将textBox1的内容复制到textBox2而不按任何按钮或任何东西/在textBox1上输入内容后自动复制,然后将textBox2递增1。
解决方案
我想你可以用js来做:
('#txt1')。keypress (函数(){
( '#TXT2')。VAL(
copy contents of textBox1 to textBox2 without pressing a button or anything/automatically copies as soon as I enter something on textBox1, then increment textBox2 by one.
解决方案
I think you can use js to do :
('#txt1').keypress(function(){
('#txt2').val(
这篇关于将textBox1的内容复制到textBox2而不按任何按钮或任何东西/在textBox1上输入内容后自动复制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文