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 [16.12.2020 16:05] – [Example 1: Visible Selection] mohadmun | ||
---|---|---|---|
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> |