"Demo"
Bootstrap 3.3.0 Snippet by effa

<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="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <form class="form-horizontal"> <fieldset> <!-- Form Name --> <div class="col-md-2"></div> <div class="col-md-8"> <legend>Sistema de Mérito e Demérito</legend> <!-- Text input--> <div class="form-group"> <label class="col-md-4 control-label" for="username">Nome de Usário</label> <div class="col-md-4"> <input id="username" name="username" type="text" placeholder="" class="form-control input-md" required=""> <span class="help-block">*CEPI-F114</span> </div> <div class="col-md-4"> <button id="submit" name="submit" class="btn btn-success">Enviar</button> </div> </div> <!-- Text input--> <div class="form-group" id="data"> <label class="col-md-4 control-label" for="datepicker">Data</label> <div class="col-md-4"> <input id="datepicker" name="datepicker" type="text" placeholder="Seleccionar a Data" class="form-control input-md" required="" onfocus="showTurma()"> </div> </div> <!-- Select Basic --> <div class="form-group" id="turma" hidden> <label class="col-md-4 control-label" for="classe">Disciplina (Classe/Turma)</label> <div class="col-md-4"> <select id="classe" name="classe" class="form-control" onchange="showToDo();"> <option></option> <option value="">Matemática (11ª A 2018)</option> <option value="">Matemática (11ª A 2018)</option> </select> </div> </div> <!-- Select Basic --> <div class="form-group" id="faz" hidden> <label class="col-md-4 control-label" for="fazer">Seleccionar o que fazer</label> <div class="col-md-4"> <select id="fazer" name="fazer" class="form-control"> <option value="">Novo Registro</option> <option value="">Editor</option> <option value="">Relátorio</option> <option value="" disabled>Administração</option> </select> </div> </div> <!-- Button --> <div class="form-group" id="submit" hidden> <label class="col-md-4 control-label" for="submit"></label> <div class="col-md-4"> <button id="submit" name="submit" class="btn btn-success" style="float: right;">Enviar</button> </div> </div> </div> </fieldset> </form> </div>
function showData(){ document.getElementById('data').style.display = 'block'; } function showTurma(){ document.getElementById('turma').style.display = 'block'; } function showToDo(){ document.getElementById('faz').style.display = 'block'; }

Related: See More


Questions / Comments: