add event submit
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
instance.get("token", { withCredentials: true})
|
||||
.then(function(response) { console.log(response) })
|
||||
.catch(function(error){
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
document.getElementById("signin").addEventListener("submit", function(evt){
|
||||
evt.preventDefault();
|
||||
var email = document.getElementById("floatingEmail");
|
||||
var password = document.getElementById("floatingPassword");
|
||||
if((password.value.length > 0) || (email.value.length > 0)){
|
||||
console.log("request");
|
||||
}
|
||||
})
|
Reference in New Issue
Block a user