When the user enters the number of tickets they want in the text box, the subtotal should automatically change/update. What do I have to add to get this working?
<form id="confirmInfo" action="bookingsuccess.html">
<p>Number of tickets :
<input type="text" type="num" />
</p>
<p>Price Per ticket : $7</p>
<p>Booking fee : $2</p>
<p>Subtotal : <b>$<span id="total">0</span></b>
</p>
<form name="myform" action="bookingsuccess.php" method="post">
<button>Book</button>
</form>
<button>Cancel</button>
</form>