Good afternoon guys, I have a problem that should be silly, but I can not resolve it.
I have a list of people ... in this list I have a button. By hovering over the button, the person's correct ID is displayed.
But when I click the button, it opens the modal, and the ID field displays a different number.
<a class="btn btn-warning btn-xs" href="<c:url value="upload?cod=${pessoa.cod}"/>" data-toggle="modal" data-target="#testes">Upload Doc</a>
And here my modal:
<div class="modal fade" id="testes" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
<h4 class="modal-title">Modal title</h4>
</div>
<div class="modal-body">
<%@include file="formUpload.jsp" %>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
And finally my "form":
<form name="formUpload" id="formUpload" action="<c:url value="/pessoa/uploadDoc"/>" method="post">
<input type="text" name="pessoa.cod" id="pessoaCod" class="id" value="${pessoa.cod}">
I'm confused by this.
This field does not display the correct id.