I have a table inside a form with 3 fields: The field -Días del pago-
brings the number of days from the database.
I can't find the way to select the -Fecha de Salida-
date and to add the -Days of payment- and that in the last field that is called -Fecha de pago-
it brings me the -Fecha de salida-
plus the -Días del pago-
.
The problem is that I don't know how javascript
to do it automatically on the same screen.
<table>
<tr>
<td><font color="#0f0f0f">Fecha de Salida:</font></td>
<td><input name="fecha_sali" id="fecha_sali" type="date" style="height:35px;width:200px;font-size:1em;" size="25"></td>
</tr>
<tr>
<td><font color="#000">Días del Pago:</font></td>
<td><input name="pago" id="pago" type="text" value="<?php echo $terms_p; ?>" style="height:35px;width:200px;font-size:1em;" size="25"></td>
</select>
</tr>
<tr>
<td><font color="#000">Fecha de pago:</font></td>
<td><input name="pago" id="pago" type="date" style="height:35px;width:200px;font-size:1em;" size="25"></td>
</select>
</tr>
<tr>
<td><font color="#000">Embarque:</font></td>
<td><select name="estado" style="width:200px;border:1px solid #04467E;border-radius:10px;background-color:#DDFFFF;color:#2D4167;font-size:18px" required>
<option></option>
<option value="1">Completo</option>
<option value="PARCIAL">Parcial</option>
</select>
</tr>
</table>
Any help would be great, thank you very much.
use ajax to get the information from your database, I don't know if the payment days depend on some data?
I hope that is your help