The one I am trying to get is:
a & Lt; Div & gt; ;
which shows "You've selected Seat 1." Message, when i & lt; Div & gt; Clicking the associated button under
is also possible to click several buttons, as a result should be displayed as appropriate "you have selected 1, ... and x." message.
Question
How can I get this?
Side info
I need this for several buttons because it is a cinema reservation system.
What I've done so far
& Lt; Input class = "textButton" type = "button" id = "button2" value = "seat 2" onclic = "text (button2)" /> & Lt; Div id = "bookingDiv" type = "text" & gt; You have selected the button: & lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt;
Thanks for any advice!
Try it out:
document.getElementById ("# bookingDiv" ). InnerHTML = "seat 1";
Comments
Post a Comment