"QUIZ"
Bootstrap 3.3.0 Snippet by calvin52019

<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 ----------> <link rel="stylesheet" href="//fontawesome.io/assets/font-awesome/css/font-awesome.css"> <div class="container" id="quiz"> <div class="row"> <div class="col-md-8 col-md-offset-2" id="panel1"> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title text-danger"> <i class="fa fa-question-circle fa-3x"></i> 1. The First Question? </h3> </div> <div class="panel-body two-col"> <div class="row"> <div class="col-md-4"> <div class="frb frb-danger margin-bottom-none"> <input type="radio" id="radio-button-5" name="radio-button" value="5"> <label for="radio-button-5"> <span class="frb-title">Answer 1</span> <span class="frb-description"></span> </label> </div> </div> <div class="col-md-4"> <div class="frb frb-danger margin-bottom-none"> <input type="radio" id="radio-button-5" name="radio-button" value="5"> <label for="radio-button-5"> <span class="frb-title">Answer 2</span> <span class="frb-description"></span> </label> </div> </div> <div class="col-md-4"> <div class="frb frb-danger margin-bottom-none"> <input type="radio" id="radio-button-5" name="radio-button" value="5"> <label for="radio-button-5"> <span class="frb-title">Answer 3</span> <span class="frb-description"></span> </label> </div> </div> </div> <div class="row"> <div class="col-md-4"> <div class="frb frb-danger margin-bottom-none"> <input type="radio" id="radio-button-5" name="radio-button" value="5"> <label for="radio-button-5"> <span class="frb-title">Answer 4</span> <span class="frb-description"></span> </label> </div> </div> <div class="col-md-4"> <div class="frb frb-danger margin-bottom-none"> <input type="radio" id="radio-button-5" name="radio-button" value="5"> <label for="radio-button-5"> <span class="frb-title">Answer 5</span> <span class="frb-description"></span> </label> </div> </div> <div class="col-md-4"> <div class="frb frb-danger margin-bottom-none"> <input type="radio" id="radio-button-5" name="radio-button" value="5"> <label for="radio-button-5"> <span class="frb-title">Answer 6</span> <span class="frb-description"></span> </label> </div> </div> </div> </div> <div class="panel-footer"> <div class="row"> <div class="col-md-6"> <button type="button" class="btn btn-success btn-sm btn-block hidden"> <span class="fa fa-send"></span>back</button> </div> <div class="col-md-6"> <button id="step2" type="button" class="btn btn-primary btn-sm btn-block"> next</button> </div> </div> </div> </div> </div> </div> <div class="row"> <div class="col-md-8 col-md-offset-2" id="panel2"> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title text-danger"> <i class="fa fa-question-circle fa-3x"></i> 2. The Second Question?? </h3> </div> <div class="panel-body two-col"> <div class="row"> <div class="col-md-4"> <div class="frb frb-danger margin-bottom-none"> <input type="radio" id="radio-button-5" name="radio-button" value="5"> <label for="radio-button-5"> <span class="frb-title">>Answer 1</span> <span class="frb-description"></span> </label> </div> </div> <div class="col-md-4"> <div class="frb frb-danger margin-bottom-none"> <input type="radio" id="radio-button-5" name="radio-button" value="5"> <label for="radio-button-5"> <span class="frb-title">Answer 2</span> <span class="frb-description"></span> </label> </div> </div> <div class="col-md-4"> <div class="frb frb-danger margin-bottom-none"> <input type="radio" id="radio-button-5" name="radio-button" value="5"> <label for="radio-button-5"> <span class="frb-title">Answer 3</span> <span class="frb-description"></span> </label> </div> </div> </div> <div class="row"> <div class="col-md-4"> <div class="frb frb-danger margin-bottom-none"> <input type="radio" id="radio-button-5" name="radio-button" value="5"> <label for="radio-button-5"> <span class="frb-title">Answer 4</span> <span class="frb-description"></span> </label> </div> </div> <div class="col-md-4"> <div class="frb frb-danger margin-bottom-none"> <input type="radio" id="radio-button-5" name="radio-button" value="5"> <label for="radio-button-5"> <span class="frb-title">Answer 5</span> <span class="frb-description"></span> </label> </div> </div> <div class="col-md-4"> <div class="frb frb-danger margin-bottom-none"> <input type="radio" id="radio-button-5" name="radio-button" value="5"> <label for="radio-button-5"> <span class="frb-title">Answer 6</span> <span class="frb-description"></span> </label> </div> </div> </div> </div> <div class="panel-footer"> <div class="row"> <div class="col-md-6"> <button id="step1" type="button" class="btn btn-success btn-sm btn-block"> <span class="fa fa-send"></span>back</button> </div> <div class="col-md-6"> <button type="submit" class="btn btn-primary btn-sm btn-block"> next</button> </div> </div> </div> </div> </div> </div> </div>
#cnt1 { background-color: rgba(215, 212, 212, 0.88); margin-bottom: 70px; } #panel1 { padding:20px; } .panel-body:not(.two-col) { padding: 0px; } .panel-body .radio, .panel-body .checkbox { margin-top: 0px; margin-bottom: 0px; } .panel-body .list-group { margin-bottom: 0; } .margin-bottom-none { margin-bottom: 0; } .frb-group { margin: 15px 0; } .frb ~ .frb { margin-top: 15px; } .frb input[type="radio"]:empty, .frb input[type="checkbox"]:empty { display: none; } .frb input[type="radio"] ~ label:before, .frb input[type="checkbox"] ~ label:before { font-family: FontAwesome; content: '\f096'; position: absolute; top: 50%; margin-top: -11px; left: 15px; font-size: 22px; } .frb input[type="radio"]:checked ~ label:before, .frb input[type="checkbox"]:checked ~ label:before { content: '\f046'; } .frb input[type="radio"] ~ label, .frb input[type="checkbox"] ~ label { position: relative; cursor: pointer; width: 100%; border: 1px solid #ccc; border-radius: 5px; background-color: #f2f2f2; } .frb input[type="radio"] ~ label:focus, .frb input[type="radio"] ~ label:hover, .frb input[type="checkbox"] ~ label:focus, .frb input[type="checkbox"] ~ label:hover { box-shadow: 0px 0px 3px #333; } .frb input[type="radio"]:checked ~ label, .frb input[type="checkbox"]:checked ~ label { color: #fafafa; } .frb input[type="radio"]:checked ~ label, .frb input[type="checkbox"]:checked ~ label { background-color: #f2f2f2; } .frb.frb-default input[type="radio"]:checked ~ label, .frb.frb-default input[type="checkbox"]:checked ~ label { color: #333; } .frb.frb-primary input[type="radio"]:checked ~ label, .frb.frb-primary input[type="checkbox"]:checked ~ label { background-color: #337ab7; } .frb.frb-success input[type="radio"]:checked ~ label, .frb.frb-success input[type="checkbox"]:checked ~ label { background-color: #5cb85c; } .frb.frb-info input[type="radio"]:checked ~ label, .frb.frb-info input[type="checkbox"]:checked ~ label { background-color: #5bc0de; } .frb.frb-warning input[type="radio"]:checked ~ label, .frb.frb-warning input[type="checkbox"]:checked ~ label { background-color: #f0ad4e; } .frb.frb-danger input[type="radio"]:checked ~ label, .frb.frb-danger input[type="checkbox"]:checked ~ label { background-color: #d9534f; } .frb input[type="radio"]:empty ~ label span, .frb input[type="checkbox"]:empty ~ label span { display: inline-block; } .frb input[type="radio"]:empty ~ label span.frb-title, .frb input[type="checkbox"]:empty ~ label span.frb-title { font-size: 16px; font-weight: 700; margin: 5px 5px 5px 50px; } .frb input[type="radio"]:empty ~ label span.frb-description, .frb input[type="checkbox"]:empty ~ label span.frb-description { font-weight: normal; font-style: italic; color: #999; margin: 5px 5px 5px 50px; } .frb input[type="radio"]:empty:checked ~ label span.frb-description, .frb input[type="checkbox"]:empty:checked ~ label span.frb-description { color: #fafafa; } .frb.frb-default input[type="radio"]:empty:checked ~ label span.frb-description, .frb.frb-default input[type="checkbox"]:empty:checked ~ label span.frb-description { color: #999; }
$(document).ready(function() { $('#panel2').hide(); $('#step1').click( function () { $('#panel1').show();$('#panel2').hide(); }); $('#step2').click( function () { $('#panel1').hide();$('#panel2').show(); }); });

Related: See More


Questions / Comments: