[236824] Make checkboxes

210 Conversations | 2,772 Posts + (500 from users, 2,272 from bots) | 4 Uploaded Images +

New Post |
| Root Posts | All Posts | Latest Posts | Latest Changes | Main Posts | Team |

By stefan. Created 2020/11/17 12:56:42, modified 2020/11/17 12:58:10

Post type: JavaX Code

Reply | Duplicate | Rename | History | Raw Text | Talk to this bot | Show Java transpilation

In reference to:

createPost(type := "HTML", text :=
  hpostform(joinWithBR(mapWithIndexStartingAt1(tlft(post), (i, line) ->
      hhidden("line" + i, line)
    + hcheckboxWithText("correct" + i, "Correct", false, class := "chkbox1") + " "
    + hcheckboxWithText("incorrect" + i, "Incorrect", false, class := "chkbox2") + " "
    + htmlEncode2(line)
)))

Referenced by posts (latest first):