skip to Main Content

Javascript – User input not sent to server

My controls look like this return ( <div className='contentDiv'> <Container> <Form onSubmit={getFormData}> <Form.Group className="mb-3" controlId="formBasicName"> <Row><Form.Control name="id" type="number" value={3} readOnly={ true }></Form.Control></Row> <Row> <Col> <Form.Label>Forname:</Form.Label> <Form.Control name="firstname" type="text" placeholder="navn"></Form.Control> </Col> <Col> <Form.Label>Efternavn:</Form.Label> <Form.Control name="lastname" type="text" placeholder="Efternavn"></Form.Control> </Col> </Row> </Form.Group> <Row><Button…

VIEW QUESTION

How to send API data to a HTML?

While I fetched the data successfully, I cannot manage to display the data to an HTML efficiently. The only way that that it works(how far I've gotten) is with two endpoints. Where one endpoint is to load the API data…

VIEW QUESTION
Back To Top
Search