Skip to content

Commit

Permalink
Fixed issue #06200: if enter text into other box, then click the othe…
Browse files Browse the repository at this point in the history
…r checkbox, the entered text disappears
  • Loading branch information
TMSWhite committed Jun 11, 2012
1 parent b8dface commit 2498931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qanda.php
Expand Up @@ -2377,7 +2377,7 @@ function do_multiplechoice($ia)
}
$answer .= ' value="'.htmlspecialchars($dispVal,ENT_QUOTES).'"';
}
$answer .= " onchange='$(\"#java{$myfname}\").val(this.value);$oth_checkconditionFunction(this.value, this.name, this.type);if ($.trim($(\"#java{$myfname}\").val())!=\"\") { \$(\"#answer{$myfname}cbox\").attr(\"checked\",\"checked\"); } else { \$(\"#answer{$myfname}cbox\").attr(\"checked\",\"\"); }; LEMflagMandOther(\"$myfname\",this.checked);' $numbersonly />";
$answer .= " onchange='$(\"#java{$myfname}\").val(this.value);$oth_checkconditionFunction(this.value, this.name, this.type); LEMflagMandOther(\"$myfname\",\$(\"#answer{$myfname}cbox\").attr(\"checked\"));' onkeyup='if ($.trim(this.value)!=\"\") { \$(\"#answer{$myfname}cbox\").attr(\"checked\",\"checked\"); } else { \$(\"#answer{$myfname}cbox\").attr(\"checked\",\"\"); }' $numbersonly />";
$answer .= '<input type="hidden" name="java'.$myfname.'" id="java'.$myfname.'" value="';

if (isset($_SESSION[$myfname]))
Expand Down

0 comments on commit 2498931

Please sign in to comment.