【发布时间】:2019-10-09 18:10:31
【问题描述】:
我想保存一个具有相同路径的 2 个输入字段。 我想显示一个数据,我有两个具有相同路径的输入字段。但不幸的是,当我单击更新时,它会在每个字段中显示以逗号分隔的两个输入值。 EX 值在每个输入字段中。 6,9 但我想看看客户端何时更新 6 9 例如,当客户端想要更新以及在第二个字段中时,第一个字段上的客户端输入必须相同。有人可以帮我吗?
<div class="form-group">
<label class="control-label col-md-5 col-sm-5 col-xs-12"></label>
<div class="col-md-5 col-sm-5 col-xs-12">
<form:input path="description3" id="and1" type="text"/>
</div>
</div>
<div class="form-group">
<label class="control-label col-md-5 col-sm-5 col-xs-12"></label>
<div class="col-md-5 col-sm-5 col-xs-12">
<form:input path="description3" id="and2" type="text"/>
</div>
</div>
I expecting that the result is like if what you input on first field and second field , and when you click update must show what value does first field and second field has.
但它显示第一个字段显示 15,16 第二个字段也显示 15,16 所以我想要的是这样的前任。
first field i inputted
15
second field i inputted
16
错误就像第一个和第二个字段显示 15,16 我想看看 15 16
谢谢!
【问题讨论】:
标签: java html mysql spring-mvc