Drop Up form from Footer

html

#1


Hi, will anybody help me.I installed Boostrap and I need after pressing the grey button in the footer the FORM appear, but I am helpless. No adea, how to do that. Thanks a lot.


-Drop Up original list from Getboostrap.com did not appear also after button been pressed. I replaced list with FORM and also not working. www.getboostrap.com->components->dropdowns->Dropup button code


<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">

<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous">

<style>
h2{text-align:center;}

footer{
    position: absolute;
    left: 0px;
    bottom:0px;
    background:grey;
    width:100%;
    height:100px;
    text-align:center;
   }
   
 

</style>
</head>
<body>
<H2>DropUp Form from Footer</h2>



<footer >

  
  <div class="dropup">
  <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
    Dropup
    <span class="caret"></span>
  </button>
  <div>
  <!-- <form class="form" actin="send.php"   method="post" >   //This form should appear after Dropup button been pressed.

<label for="email">Váš e-mail:</label>
<p>
<input name="email" id="email" type="text">
</p>
<label for="dotaz">Dotaz:</label>
<p>
<textarea name="dotaz" id="dotaz"  cols="22" rows="3"></textarea>
</p>
<input type="submit" value="Odeslat"> 

</form>-->
</div>
</div>



</footer>

<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
</body>
</html>


#2

You will have to define a logic to the button , only then the form will appear on pressing the button.. Do some javascript or jquery

Using jquery this can be done somewhat like this

jQuery(function($) {
$('#dropdownmenu2').click(function() {

$('form').show();

});

});

Also make sure to apply
display: none;
to the form initially inside the style tags.

Hope that helps


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.