Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

156
Views
Repita el archivo de tipo de entrada tomando la entrada de enteros del usuario

Entonces, básicamente tengo un cuadro de texto y un botón de carga de archivos. Lo que quiero cuando el usuario ingresa un número entero en el cuadro de texto, por ejemplo: 10, luego quiero mostrar el botón de carga de archivos 10 veces.

about 4 years ago · Juan Pablo Isaza
3 answers
Answer question

0

Aquí hay una demostración de trabajo, espero que sea útil para usted.

 <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> function AppendRow(e) { var val = e.value; if (val !== "") { var html =''; for (var i = 0; i < val; i++) { html +='<input type="file" id="file">'; } $("#append").empty().append(html); } } </script> </head> <body> <input type="text" id="input1" onkeyup="AppendRow(this)"/> <div id="append"> <div> </body> </html>

about 4 years ago · Juan Pablo Isaza Report

0

 <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("input").keyup(function(){ var val = $(this).val(); if (val !== "") { var html; for (var i = 0; i < val; i++) { html = '<input type="file" id="file">'; $("#append").append(html); } } }); }); </script> </head> <body> <input type="text" id="input" /> <div id="append"> </div> </body> </html>
about 4 years ago · Juan Pablo Isaza Report

0

Por favor use el siguiente código

 <input [(ngModel)]="count" /> <div *ngFor="let item of [].constructor(count); "> <input type='file'> </div>

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!