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

207
Views
Hi. I wrote the code for popup in reactjs but the validation is not working on each input field inside popup
    I am creating a functional component called EmptyZoo.
   const EmptyZoo = () => {
    /* Here i created onSubmit function
    function onSubmit(event) {
        event.preventDefault();
        // calling the API by Axios.
        let response = () => {
          Axios.post("http://localhost:8081/zoo/save", {
            name: inputValues.name,
            address1: inputValues.address1,
            country: locations.country,
          })
      }

// here i have created modal part return ( // Here when i click the button below the modal opens Add Zoo // Modal part // Modal Header <Modal.Header closeButton> <Modal.Title>Modal heading</Modal.Title> </Modal.Header> // Modal Body <Modal.Body> Name: <input type="text" name="name" id="user" className="form-control" required placeholder={t("Name")} value={inputValues.name} onChange={handleChange} /> // Country Country: Select: Country {locations.map((location) => ( {location.country} ))} </Modal.Body> // Footer element <Modal.Footer> Close Submit </Modal.Footer> // this is my end of the code

about 4 years ago · Juan Pablo Isaza
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!