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

99
Views
¿Cómo puedo hacer un evento después de elegir un elemento en la lista desplegable con reactJs?

de hecho, estoy trabajando en el proyecto reactJs con la API de Laravek. Quiero cambiar el valor de un campo después de elegir un elemento en una lista desplegable. Este es un ejemplo: si elijo, por ejemplo, bimestralmente, el valor del contrato de alquiler por período debe ser 444 (222 * 2), etc. [1]: https://i.stack.imgur.com/t58vK.png Esto es mi código:

 <Row> <Col sm='6' className='mb-1'> <Label className='form-label' >Select Period</Label> <select className='form-control'> <option>Select Period </option> {periodList.map((item) => { return (<option value='periodicity'>{item.periodicity}</option> ) }) } </select> </Col> {unit.map((item) => <Col sm='6' className='mb-1'> <Label className='form-label'> Contract Rent Per Period </Label> <Input type='text' value={item?.unit_rent_per_month} /> </Col> )} <Col sm='6' className='mb-1'> <Label className='form-label' for='compl_date'> Date <span className='text-danger'>*</span> </Label> <Flatpickr className='form-control' value={date} id='date' /> </Col> {unit.map((item) => <Col sm='6' className='mb-1'> <Label className='form-label'> Contract Rent Per Period </Label> <Input type='text' value={item?.unit_rent_per_month} /> </Col> )} </Row>

les agradeceria mucho si alguno de ustedes me puede ayudar

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

0

puede agregar onClick en su etiqueta y hacer con ellos lo que quiera

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!