Cordial Greeting.
I hope you can help me with what I want to do.
I have a PHP - HTML table
Well, the fact is that, when I click on the pen, I opened a Modal window:
What I want to do, is to pass 1 variable to the Modal window, by clicking on the pencil.
This is the structure of the piece that I need:
<td><?php echo $row['Descr']; ?><a href="#miModal" data-toggle="modal"><img src="img/editar.png" class="btn"></a></td>
and this is the Modal:
<div class="modal fade" id="miModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title" id="myModalLabel">Editar Nombre del Concepto</h4>
</div>
<div class="modal-body">
<label>Nombre Concepto:</label>
<input type="text" name="nombre" id="nombre" required="on" autocomplete="off" class="form-control"><br/>
<input type="button" name="insert" onclick="actualizarnombrecon();" class="btn btn-primary" value="GUARDAR">
<button type="button" class="btn btn-warning" data-dismiss="modal">CANCELAR</button>
</div>
</div>
</div>
</div>
I really do not know how to make it work
I hope you can help me
Thanks in advance