Código PHP:
<input type="hidden" name="ticketid" value="1"/>
Código PHP:
id = document.getElementByName("ticketid").value;
| |||
| Tengo este html: Código PHP: Código PHP: |
| ||||
| Respuesta: Funcion recoger value Una buena idea seria ponerle un id al input, ya que te es más manejable en javascript, y lo identificaclaramente. entonces podrias hacer algo como document.getElementById("OBJETO").value y tendrias tu 1. |
| Etiquetas: |