This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
en:create:dynamic [26.11.2020 21:09] – [Example 1: Visible Selection] sophia.schauer | en:create:dynamic [27.01.2021 14:49] – sophia.schauer | ||
---|---|---|---|
Line 45: | Line 45: | ||
// the two pipes (||) are a logicial " | // the two pipes (||) are a logicial " | ||
// the condition checks: is option A selected or is B selected? | // the condition checks: is option A selected or is B selected? | ||
- | if ((optionA.checked) || (optionB.checked)) { | + | if (optionA.checked || optionB.checked) { |
// if " | // if " | ||
// no input ("" | // no input ("" | ||
Line 114: | Line 114: | ||
==== JavaScript Code ==== | ==== JavaScript Code ==== | ||
- | The following HTML/ | + | The following HTML/ |
<code javascript> | <code javascript> | ||
Line 164: | Line 164: | ||
</ | </ | ||
</ | </ | ||
+ |