You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
607 B
17 lines
607 B
6 months ago
|
document.addEventListener("DOMContentLoaded",()=>{
|
||
|
const signupForm=document.getElementById("sign-form");
|
||
|
signupForm.addEventListener("submit",(event)=>{
|
||
|
event.preventDefault();
|
||
|
|
||
|
const userType=document.getElementById("user-type").value;
|
||
|
const name=document.getElementById("name").value;
|
||
|
const email=document.getElementById("email").value;
|
||
|
const password=document.getElementById("password").value;
|
||
|
|
||
|
if(!name|| !email|| !password){
|
||
|
alert("please fill in the field.");
|
||
|
return;
|
||
|
}
|
||
|
signupForm.onsubmit();
|
||
|
});
|
||
|
});
|