blob: 0d853fea5445de85ba2d8a14958c1449d9c48ba5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
class CommentForm {
constructor(domain) {
this.domain = domain;
this.form_element = document.getElementById("comment-form");
this.form_element.addEventListener("submit", this.submit);
}
submit(event) {
this.form = new FormData(event.target);
console.log(this.form);
}
}
|