Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

207
Vistas
How can i dynamically set the number of rows based on the value of an input box

I am trying to set the number of rows containing form fields based on the value of an input box. How can I accomplish this? Code snippet below. Basically I want to loop the value in the "numpos" field. Ideally I'd like to have it dynamically update when the user types a number in the numpos field.

<tr>
  <th>Number Of Positions:</th>
  <td colspan="4"><cfinput type="text" name="numpos" required="yes" message="Please enter the number of positions"></td>
</tr>
<cfif #mynum# NEQ 0>
  <cfloop from="1" to="#mynum#" index="i">
    <tr>
      <th>Number Of People Needed:</th>
      <th>Position Description:</th>
      <th>Date:</th>
      <th>Start Time:</th>
      <th>End Time:</th>
    </tr>
    <tr>
      <td><cfinput type="text" name="numpeople"></td>
      <td><cfinput type="text" name="posdesc"></td>
      <td><cfinput type="text" name="posdate"></td>
      <td><cfinput type="text" name="starttime"></td>
      <td><cfinput type="text" name="endtime"></td>
    </tr>
  </cfloop>
</cfif>
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda