Hi Andreas,
Attached are two files, one jquery and one related
php file. You might need to change the address
location of php file depending on where it is located
(line 7,25,44) of calculate-total.js.
Also include these two lines
in header.php file
<script type="text/_javascript_" src=""></script>
<script type="text/_javascript_" src=""></script>
I have
also done minor changes to html..(we can discuss
in depth in irc, where & why)
<div class="section group">
<div class="col
span_1_of_2">Name</div>
<div class="col
span_1_of_2"><input type="text"
autofocus="true" /></div>
<div class="section group">
<div class="col
span_1_of_2">E-mail</div>
<div class="col
span_1_of_2"><input type="email"
/></div>
<div class="section group">
<div class="col span_1_of_2">IRC
nick</div>
<div class="col
span_1_of_2"><input type="text"
placeholder="optional" /></div>
<div class="section group">
<div class="col
span_1_of_2">Gender</div>
<div class="col
span_1_of_2"><input type="text"
placeholder="optional" /></div>
<div class="section group">
<div class="col
span_1_of_2"></div>
<div class="col span_1_of_2">
<fieldset><span
class="addedupnum">€AddedUpNum</span> <label
class="accomfee">0</label><input
type="checkbox" name="accommodation"
value="accommodation"
/><strong>Accommodation</strong>
<div class="section group
subgroup">
<div class="col
span_1_of_2">Arrival</div>
<div class="col
span_1_of_2"><select
id="arrive"><option
value="arrival-jul25">Friday July
25</option>
<option
value="arrival-jul26">Saturday July
26</option><option
value="arrival-jul27">Sunday July
27</option><option
value="arrival-jul28">Monday July
28</option><option
value="arrival-jul29">Tuesday July
29</option><option
value="arrival-jul30">Wednesday July
30</option><option
value="arrival-jul31">Thursday July
31</option></select></div>
<div class="section group
subgroup">
<div class="col
span_1_of_2">Departure</div>
<div class="col
span_1_of_2"><select
id="depart"><option
value="departure-jul26">Saturday July
26</option><option
value="departure-jul27">Sunday July
27</option><option
value="departure-jul28">Monday July
28</option><option
value="departure-jul29">Tuesday July
29</option><option
value="departure-jul30">Wednesday July
30</option><option
value="departure-jul31">Thursday July
31</option><option
value="departure-aug01">Friday August
1</option></select></div>
<input type="checkbox"
name="sponsored" value="sponsored" />I am
sponsored by the GNOME
Foundation</fieldset>
<div class="section group">
<div class="col
span_1_of_2"></div>
<div class="col span_1_of_2">
<fieldset><span
class="addedupnum">€AddedUpNum</span> <label
class="lunchfee">0</label><input
type="checkbox" name="lunch" value="lunch"
/><strong>Lunch</strong>
<div class="section group
subgroup">
<div class="col
span_1_of_2">Desired days</div>
<div class="col
span_1_of_2"><input type="checkbox"
name="entry-fee" value="lunch_saturday"
/>Saturday 26th
<input type="checkbox"
name="entry-fee" value="lunch_sunday"
/>Sunday 27th
<input type="checkbox"
name="entry-fee" value="lunch_monday"
/>Monday 28th
<input type="checkbox"
name="entry-fee" value="lunch_tuesday"
/>Tuesday 29th</div>
<div class="section group
subgroup">
<div class="col
span_1_of_2">Dietary
restrictions</div>
<div class="col
span_1_of_2"><input type="text"
/></div>
<div class="section group">
<div class="col span_1_of_2">Entry
fee</div>
<div class="col
span_1_of_2"><input type="radio"
name="entry-fee" value="10" />Minimum 10€
<input type="radio" name="entry-fee"
value="20" />Recommended 20€
<input type="radio" name="entry-fee"
value="50" />Supporter 50€
<input type="radio" name="entry-fee"
id = "entry-fee-arb" value="15"
/><input type="number" id="entry-arb"
min="0" placeholder="15" /></div>
<div class="section group">
<div class="col
span_1_of_2"><strong>Total</strong></div>
<div class="col
span_1_of_2"><strong>AddedUpNum</strong> <label
class="total">0</label></div>
<div class="section group">
<div class="col
span_1_of_2"></div>
<div class="col
span_1_of_2"><input type="submit"
value="Proceed" /></div>