Practicle No 8
Practicle No 8
Practicle No 8
<!DOCTYPE html>
<html lang="en">
<head>
<title>Document</title>
</head>
<style>
form{
width: 600px;
padding: 15px;
</style>
<body>
<form action="#">
<h1>Pizza Corner</h1>
<h2>Pizza Type</h2>
</select>
<h2>Pizza Size</h2>
<h2>Pizza Toppings</h2>
<input type="checkbox" name="check" value="50"> Extra Cheese (Rs.50)
Onion (Rs.20)
<button type="reset">Clear</button><br><br>
</form>
<script>
function calculate() {
var qnt=parseInt(document.getElementById("quan").value);
var toppingCost = 0;
toppings.forEach(function(topping) {
toppingCost += parseInt(topping.value);
});
</script>
</body>
</html>