test<form action="" id="calculator" onsubmit="return false;"> <div> <div class="cont_order"> <fieldset> <legend>Calculate the time</legend> <label >Is it a round trip</label> <label class='radiolabel'><input type="radio" name="selectedcake" value="RoundTrip" onclick="calculateTotal()" />Is a round trip</label><br/> <br/> <input type="text" id="horizontal" name="horizontal" value="Distancia horizontal en metros" /> <input type="text" id="ascenso" name="ascenso" value="Metros de ascenso" /> <input type="text" id="descenso" name="descenso" value="Metros de descenso" /> </p> <div id="totalPrice"></div> </fieldset> </div> </div> <input type='submit' id='submit' value='Submit' onclick="calculateTotal()" /> </div> </form>