id form
This commit is contained in:
parent
50bfdca2e5
commit
44c14d13d1
@ -19,7 +19,7 @@ class Main extends Component {
|
||||
}
|
||||
onSubmit(event){
|
||||
event.preventDefault();
|
||||
let form = document.forms[0];
|
||||
let form = document.getElementById("form");
|
||||
let formData = new FormData(form);
|
||||
fetch("/api/register", {
|
||||
method:"POST",
|
||||
@ -161,7 +161,7 @@ class Main extends Component {
|
||||
<div class="container text text-center">
|
||||
<h2>Stále nevíš, jestli se zúčastníš? Přečti si náš <button type="button" class="btn btn-warning" onClick={(e) => this.togglefaq()}>FAQ</button></h2>
|
||||
</div>
|
||||
<form class="container" onSubmit={(e) => this.onSubmit(e)}>
|
||||
<form id="form" class="container" onSubmit={(e) => this.onSubmit(e)}>
|
||||
<h1>Registrace</h1>
|
||||
<div class="mb-3">
|
||||
<label for="first_name" class="form-label">Jméno</label>
|
||||
|
Loading…
x
Reference in New Issue
Block a user