Estoy tratando de establecer la cantidad de filas que contienen campos de formulario según el valor de un cuadro de entrada. ¿Cómo puedo lograr esto? Fragmento de código a continuación. Básicamente, quiero hacer un bucle del valor en el campo "numpos". Idealmente, me gustaría que se actualice dinámicamente cuando el usuario escriba un número en el campo numpos.
<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>