Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit c686020

Browse files
author
Brad Miller
committed
Fix: - Add the real input not null
@bjones1 You cannot use getElementById until the node is attached to the tree.
1 parent 047e46d commit c686020

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

runestone/assess/js/mchoice.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ MultipleChoice.prototype.renderMCFormOpts = function () {
194194

195195
// create the object to store in optionArray
196196
var optObj = {
197-
input: document.getElementById(optid),
197+
input: $(label).find('input')[0],
198198
label: label
199199
};
200200
this.optionArray.push(optObj);

0 commit comments

Comments
 (0)