content logo

Bootstrap Forms:

Append Dynamic div with Bootstrap Panel Class

Dynamic form is one of the most important elements in websites and if you have a page, it is better to take this factor into account. We have prepared the Append Dynamic div with Bootstrap Panel Class in this post with a beautiful design. This Bootstrap Dynamic div Panel is so useful for websites and if you like to improve your page, it is the best idea to apply it. If you use this Append Bootstrap div Tag, you can easily save the space of your website and sort the data and content of your page into several sections.

There is a preview of this code below that we provided. This Bootstrap Create div has a white background and you can use it on your website with a white theme. There is a small field on the left side of the page. This field is white and the word “click” has a black color. If you click on that field, a white and large panel will display on the bottom of the button. If you click on this button again, you will see more fields. This Javascript Append Bootstrap div Panel has a simple and attractive design and you can use it and gain more visitors.

#

Bootstrap Dynamic div Panel

#

Append Bootstrap div Tag

#

Bootstrap Create div

#

Javascript Append Bootstrap div Panel

<!-- This script got from frontendfreecode.com -->
<div class="container-fluid container-fluid-max-xl mt-3">
    <button id="AppBtn">click</button>
    <div class="row" id="App"></div>
</div><a style="font-size: 8pt; text-decoration: none" target="_blank" href="http://frontendfreecode.com">Free Frontend</a>
                                                                            
.panel {
  border: 1px solid #333;
  margin: 1px;
  padding: 4px;
}
$('#AppBtn').on('click', function(e) {
  $('<div class="col-md"><div class="panel">panel</div></div>').appendTo("#App");
});
<link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/@clayui/css@3.0.0/lib/css/atlas.css'>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.15.0/popper.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/js/bootstrap.min.js'></script>
<script src='https://cdn.jsdelivr.net/npm/clay/lib/js/clay.js'></script>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- This script got from frontendfreecode.com -->

<link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/@clayui/css@3.0.0/lib/css/atlas.css'>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.15.0/popper.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/js/bootstrap.min.js'></script>
<script src='https://cdn.jsdelivr.net/npm/clay/lib/js/clay.js'></script>
<style>
.panel {
  border: 1px solid #333;
  margin: 1px;
  padding: 4px;
}
</style>

</head>
<body>
<div class="container-fluid container-fluid-max-xl mt-3">
    <button id="AppBtn">click</button>
    <div class="row" id="App"></div>
</div><div id="bcl"><a style="font-size:8pt;text-decoration:none;" href="http://www.devanswer.com">Free Frontend</a></div>
<script>
$('#AppBtn').on('click', function(e) {
  $('<div class="col-md"><div class="panel">panel</div></div>').appendTo("#App");
});
</script>

</body>
</html>
Preview