【发布时间】:2015-03-19 14:57:23
【问题描述】:
我从来没有使用过jsp,但我必须修改c:set标签上的值。
代码如下:
<form id="consultaNuevoCliente" class="form-horizontal form-bordered"
role="form" method="POST" action="saveNewClient">
<div class="form-group">
<c:set var="client" scope="request" value="${clientService.getClient()}"/>
<label for="name" class="col-sm-5
control-label no-padding-right">Razón Social</label>
<div class="col-sm-7">
<input type="text" class="form-control"
id="name" name="name" value="${client.getName()}" disabled="disabled">
</div>
</form>
在jquery下面:
$(document).on("click", ".infoIcon", function() {
var clientId = $(this).data('id');//I capture this val to use as parameter in the value="${clientService.getClient(here!);
});
但是我不能修改它的值,不知道怎么把clientId的值放在上面
value="${clientService.getClient(HERE)
【问题讨论】:
-
您在 jQuery 中使用了一个名为
.infoIcon的类,但我在您的 HTML 代码中看不到它。 -
这个类来自一个由插件创建的按钮,它可以工作,但我想用 jquery 修改 jsp 标签的值来传递和变量的值。跨度>