Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QBJS - HTML integration
#5
(11-16-2023, 06:33 PM)dbox Wrote:
(11-16-2023, 05:37 PM)misproductions Wrote: I'm struggling to work out how to add option select form
Elements in qbasic using the. Dom.Bas library. 

I'm trying to achieve following 

Print "Example question 1"  (show html select options)  store ans
Print "Example question 2" (show select options) store ans

Many thanks
Here is an example of creating a simple html form with options.  Let me know if this is what you were looking for:

Brilliant ! I envy your knowledge Smile  -

hey is there a way you can hide and show certain dom elements (i know in js and jquery using hide show etc) ?

also how would I implement the onChange event for each question so that i can print
a message based on the selected answer 

many thanks!
Reply


Messages In This Thread
QBJS - HTML integration - by misproductions - 11-16-2023, 05:37 PM
RE: QBJS - HTML integration - by dbox - 11-16-2023, 06:33 PM
RE: QBJS - HTML integration - by misproductions - 11-17-2023, 03:28 PM
RE: QBJS - HTML integration - by dbox - 11-17-2023, 07:59 PM
RE: QBJS - HTML integration - by bplus - 11-16-2023, 09:30 PM
RE: QBJS - HTML integration - by dbox - 11-16-2023, 09:59 PM



Users browsing this thread: 3 Guest(s)