"Hotel Reservation Form"
Bootstrap 3.3.0 Snippet by mita

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title> Hotel Reservation Form </title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="custom.css" rel="stylesheet" type="text/css">
<script>
function finalCost(){
var roomType = document.getElementById("room_type").value;
var roomNum = document.getElementById("room_number").value;
var personNum = document.getElementById("person_number").value;
var childNum = document.getElementById("child_number").value;
var resFacilities = document.getElementById("res_facilities").value;
var total = (parseInt(roomType)*10) + ((roomNum)*2) + ((personNum)*3) + ((childNum)*2) + ((resFacilities)*5)
document.getElementById("result").innerHTML = total;
}
</script>
</head>
<body>
<div class="hotel_reserve_box">
<h3> Hotel Reservation Form </h3><br>
<form>
<div class="form-group">
<label>Room/Suite Type</label>
<select class="form-control" id="room_type" onchange="finalCost()">
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#output {
background-color: #c5edf3;
color: #463c39;
font-size: 17px;
padding: 30px 30px;
width: 40%;
border: 2px solid #009688;
font-family: sans-serif;
line-height: 1.8;
}
#newPublish {
background-color: #c5edf3;
color: #463c39;
font-size: 17px;
padding: 30px 30px;
width: 40%;
border: 2px solid #009688;
font-family: sans-serif;
line-height: 1.8;
}
.box {
background-color: #f7f7f7;
margin-top: 60px;
margin-bottom: 50px;
padding: 40px 60px;
}
#details_info {
background-color: #f7f7f7;
color: #463c39;
font-size: 17px;
padding: 30px 30px;
width: 40%;
border: 1px solid #cccccc;
font-family: sans-serif;
line-height: 1.8;
margin-left: 90px;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: