JSF重置文本字段 [英] JSF reset text field
本文介绍了JSF重置文本字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想通过单击重置按钮来重置文本字段.如何在JSF中做到这一点?
I want to reset text field on click of the reset button. How can I do it in JSF?
推荐答案
好吧,然后输入< input type ="reset">
,如果您有< h:form>
会起作用.如果要清除单个字段,请使用javascript.
Well, then make an <input type="reset">
and if you have a <h:form>
it will work. If you want to clear an individual field, use javascript.
这篇关于JSF重置文本字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文