"Registration form with collapsable details"
Bootstrap 3.0.0 Snippet by asheshnepal9

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="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.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 ---------->
<div class="container">
<div class="text-center">
<h1 class="nice">Registration Form</h1>
</div>
<form class="form-horizontal" method="post"
action="#">
<!-- Text input-->
<div class="form-group">
<label class="col-md-4 control-label" for="name">Name</label>
<div class="col-md-4">
<input id="name" name="name" type="text" placeholder="Name" class="form-control input-md" required="">
<span class="help-block">Please type in your full name</span>
</div>
</div>
<!-- Select Date Of Birth-->
<div class="row">
<div class="form-group">
<label class="col-md-4 control-label" for="selectbasic">Month</label>
<div class="col-md-1">
<select id="selectbasic" name="selectbasic" class="form-control">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
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
@import url(http://fonts.googleapis.com/css?family=Montserrat:400,700);
@import url('https://fonts.googleapis.com/css?family=Lobster');
h1.nice {
font-family: 'Lobster', cursive;
}
body {
background-color: #ffffff;
font-family: 'Montserrat', sans-serif;
font-weight: 400;
font-size: 14px;
color: #555;
-webkit-font-smoothing: antialiased;
-webkit-overflow-scrolling: touch;
}
input[type='number'] {
-moz-appearance:textfield;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
display: none;
-webkit-appearance: none;
margin: 0;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$(document).ready(function () {
$('#memployboxes-1').change(function () {
$('#motherdiv').fadeIn();
});
$('#memployboxes-0').change(function () {
$('#motherdiv').fadeOut();
});
$('#femployboxes-1').change(function () {
$('#fatherdiv').fadeIn();
});
$('#femployboxes-0').change(function () {
$('#fatherdiv').fadeOut();
});
});
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments:

Very helpful the fade in and fade out effects were simple but pretty good. :)

The html could use a little work tho and be a lot shorter!

All and all it was very nice!

atulnepal (2) - 7 years ago - Reply 2


Thank you are you from nepal too?

asheshnepal9 (3) - 7 years ago - Reply 3