submit button

main
Bel LaPointe 2024-02-20 15:05:44 -07:00
parent 2dda72cfa3
commit 307e11d4c7
1 changed files with 5 additions and 0 deletions

View File

@ -23,6 +23,7 @@
<form id="answer-form" action="#" onsubmit="submitAnswersForm(this); return false;"> <form id="answer-form" action="#" onsubmit="submitAnswersForm(this); return false;">
<div id="question-options"></div> <div id="question-options"></div>
<input id="answers-freeform" type="text" hidden/> <input id="answers-freeform" type="text" hidden/>
<button type="submit">Submit</button>
</form> </form>
</body> </body>
<footer> <footer>
@ -84,6 +85,10 @@
}); });
} }
function submitAnswersForm(form) {
console.log("TODO submitAnswersForm")
}
function http(method, remote, callback, body) { function http(method, remote, callback, body) {
var xmlhttp = new XMLHttpRequest(); var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() { xmlhttp.onreadystatechange = function() {