submit button
parent
2dda72cfa3
commit
307e11d4c7
|
|
@ -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() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue