Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

208
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda