简体   繁体   English

我有两个输入文本框和一个按钮,我想单击按钮而不是将一个文本框包含的文本切换到另一文本框

[英]I have two input text box and one button, I want to click on button than switch one text box contain to other text box

我有两个输入文本框和一个按钮,我想单击按钮,而不是将一个文本框包含的内容切换到jsf中的其他文本框

write a javascript for transferring the content from one textbox to another textbox. 编写用于将内容从一个文本框传输到另一个文本框的javascript。 Trigger the script on the button "onclick" event. 在按钮“ onclick”事件上触发脚本。 Try a code on your own. 自己尝试编写代码。 If you have any troubles, i can help you..!!! 如果您有任何麻烦,我可以帮助您.. !!!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我想通过单击添加按钮动态添加JLabel和文本框 - I want to add a JLabel and Text box dynamically by clicking add button 在Selenium Webdriver中,在文本框中输入文本后单击按钮 - In Selenium Webdriver, click button once the text is entered in text box 如何在Swing中的国际化消息框中更改按钮文本 - How do I change the button text in an internationalized message box in Swing 我如何有一个可写的文本框? - How can I have a writable text box? 单击按钮后,使所有文本框不可编辑 - Make all the text box to non - editable upon a button click 如果我有多个具有相同文本的按钮,如何检查我的 JFrame 中的哪个按钮被单击? - How to check which button in my JFrame was clicked if I have more than one button with the same text? 在按钮上单击我想切换 TextView 的文本 - On Button click i want to toggle the text of TextView 当“编辑文本”框中没有文本时,如何使按钮不可单击? - How can I make a button unclickable when there is no text in the Edit Text box? 单击按钮时是否将文本添加到JTextArea框? - Adding text to JTextArea box when a button is clicked? 我有三个开关按钮,如果一个开关按钮处于活动状态,则其他两个开关按钮应保持不活动或禁用 - I have three switch button, if one switch button is active then other two switch button should remain inactive or disable
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM